nixamp 0.70.1 → 0.71.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai-label.js +6 -0
- package/dist/library-cli.d.ts +12 -0
- package/dist/library-cli.js +97 -7
- package/dist/library-routes.d.ts +2 -0
- package/dist/library-routes.js +3 -1
- package/dist/library-usage.d.ts +1 -1
- package/dist/library-usage.js +3 -2
- package/dist/server.js +4 -0
- package/package.json +1 -1
- package/src/ai-label.ts +5 -0
- package/src/library-cli.ts +83 -7
- package/src/library-routes.ts +5 -1
- package/src/library-usage.ts +3 -2
- package/src/server.ts +4 -0
- package/web/dist/assets/{ar-DpvJfvBS.js → ar-BkhH2vKH.js} +1 -1
- package/web/dist/assets/{cs-Byt29q-N.js → cs-CP-K-25-.js} +1 -1
- package/web/dist/assets/{da-BNVqf41w.js → da-CMTkA1tx.js} +1 -1
- package/web/dist/assets/{de-CkkNpSeK.js → de-Bp0dC6f_.js} +1 -1
- package/web/dist/assets/{es-DTbm6erE.js → es-Bh0gnI5K.js} +1 -1
- package/web/dist/assets/{fi-CLe542jk.js → fi-DFq37NoN.js} +1 -1
- package/web/dist/assets/{fr-Cw6IcnjA.js → fr-BeoY_SZq.js} +1 -1
- package/web/dist/assets/{hi-BA_-5ZbE.js → hi-jtnDWqvZ.js} +1 -1
- package/web/dist/assets/{hu-D4hoNRZH.js → hu-CxNFJfyV.js} +1 -1
- package/web/dist/assets/{id-BUGLjAyd.js → id-BJnf4dT1.js} +1 -1
- package/web/dist/assets/{it-zM-JnjaU.js → it-BeoOw3Pj.js} +1 -1
- package/web/dist/assets/{main-p1NGc9XO.js → main-BD_EbJVT.js} +2 -2
- package/web/dist/assets/{nl-ka_E88m2.js → nl-CM4Ui7kM.js} +1 -1
- package/web/dist/assets/{ru-CNiGclVH.js → ru-qTeCF4pp.js} +1 -1
- package/web/dist/assets/{station-6b_smJHe.css → station-CxJvFwzV.css} +1 -1
- package/web/dist/assets/{sv-cvAfJ4oL.js → sv-C7ZZjU8X.js} +1 -1
- package/web/dist/assets/{uk-45wTyXWC.js → uk-CM3OhNI1.js} +1 -1
- package/web/dist/assets/{vi-CnN2uyTw.js → vi-CQBssZqB.js} +1 -1
- package/web/dist/assets/{zh-BfjjooDK.js → zh-Djw5VmTU.js} +1 -1
- package/web/dist/index.html +1 -1
- package/web/dist/station.html +2 -2
- package/web/dist/sw.js +24 -24
- package/web/dist/vod.html +10 -2
- package/web/dist/watch.html +2 -2
- /package/web/dist/assets/{station-tWQPqySd.js → station-KW1WLKF4.js} +0 -0
- /package/web/dist/assets/{vod-BzQvQVLd.js → vod-BNL_JMl6.js} +0 -0
- /package/web/dist/assets/{watch-B9LW8D1C.js → watch-fq5gXk7x.js} +0 -0
package/dist/ai-label.js
CHANGED
|
@@ -537,6 +537,12 @@ export async function writeVeoStory(artist, members, album, song, scenes, ask =
|
|
|
537
537
|
}).filter((one) => one.prompt.length > 10).slice(0, scenes);
|
|
538
538
|
if (out.length < 1)
|
|
539
539
|
throw new Error("the model wrote no story");
|
|
540
|
+
// A model asked for many scenes often writes fewer: the rest are its own scenes again, from other angles,
|
|
541
|
+
// so every shot the plan paid for has something to film.
|
|
542
|
+
const angles = ["a different angle and closer", "a wide establishing angle", "a slow tracking shot", "an overhead angle", "a low angle"];
|
|
543
|
+
const written = out.length;
|
|
544
|
+
for (let i = 0; out.length < scenes; i++)
|
|
545
|
+
out.push({ ...out[i % written], prompt: `${out[i % written].prompt} Filmed as ${angles[i % angles.length]}.` });
|
|
540
546
|
return out.map((scene) => ({
|
|
541
547
|
cast: scene.cast,
|
|
542
548
|
prompt: `Music video for a fictional ${artist.genre} song. ${scene.prompt} Mood: ${song.style}`.slice(0, 900)
|
package/dist/library-cli.d.ts
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
1
|
import { LIBRARY_COMMANDS, LIBRARY_USAGE } from "./library-usage.ts";
|
|
2
2
|
export { LIBRARY_COMMANDS, LIBRARY_USAGE };
|
|
3
|
+
/** The public guide a published file goes on, unless --guide or --here says otherwise. */
|
|
4
|
+
export declare const STREAMING_GUIDE = "https://live.streaming.pit.world";
|
|
5
|
+
type Call = (method: string, path: string, body?: unknown) => Promise<{
|
|
6
|
+
status: number;
|
|
7
|
+
body: Record<string, unknown>;
|
|
8
|
+
}>;
|
|
9
|
+
/**
|
|
10
|
+
* The ready files `publish` means: item ids as they are, a folder on this
|
|
11
|
+
* machine as everything under it, anything else as search words. A message
|
|
12
|
+
* when nothing matches.
|
|
13
|
+
*/
|
|
14
|
+
export declare function publishPicks(targets: string[], call: Call): Promise<Record<string, unknown>[] | string>;
|
|
3
15
|
export declare function libraryTool(argv: string[]): Promise<number>;
|
package/dist/library-cli.js
CHANGED
|
@@ -9,7 +9,42 @@
|
|
|
9
9
|
import { resolveTarget } from "./admin.js";
|
|
10
10
|
import { KEY_HEADER } from "./share.js";
|
|
11
11
|
import { LIBRARY_COMMANDS, LIBRARY_USAGE } from "./library-usage.js";
|
|
12
|
+
import { readSession } from "./session.js";
|
|
12
13
|
export { LIBRARY_COMMANDS, LIBRARY_USAGE };
|
|
14
|
+
/** The public guide a published file goes on, unless --guide or --here says otherwise. */
|
|
15
|
+
export const STREAMING_GUIDE = "https://live.streaming.pit.world";
|
|
16
|
+
/**
|
|
17
|
+
* The ready files `publish` means: item ids as they are, a folder on this
|
|
18
|
+
* machine as everything under it, anything else as search words. A message
|
|
19
|
+
* when nothing matches.
|
|
20
|
+
*/
|
|
21
|
+
export async function publishPicks(targets, call) {
|
|
22
|
+
const ready = (items) => items.filter((one) => one["state"] === "ready");
|
|
23
|
+
if (targets.every((one) => /^[0-9a-f]{16}$/.test(one))) {
|
|
24
|
+
const items = await Promise.all(targets.map(async (id) => (await call("GET", `/api/v1/library/items/${id}`)).body["item"]));
|
|
25
|
+
const found = ready(items.filter((one) => Boolean(one)));
|
|
26
|
+
return found.length === targets.length ? found : "not every item is in the library and ready (nixamp library show ITEM)";
|
|
27
|
+
}
|
|
28
|
+
const { existsSync, statSync } = await import("node:fs");
|
|
29
|
+
const { resolve, relative, isAbsolute } = await import("node:path");
|
|
30
|
+
const { homedir } = await import("node:os");
|
|
31
|
+
const path = resolve(targets.join(" ").replace(/^~(?=$|\/)/, homedir()));
|
|
32
|
+
const query = new URLSearchParams({ limit: "500", sort: "path" });
|
|
33
|
+
if (existsSync(path) && statSync(path).isDirectory()) {
|
|
34
|
+
const sources = (await call("GET", "/api/v1/library/sources")).body["sources"] ?? [];
|
|
35
|
+
const source = sources.find((one) => { const rel = relative(String(one["root"] ?? ""), path); return !rel.startsWith("..") && !isAbsolute(rel); });
|
|
36
|
+
if (!source)
|
|
37
|
+
return `${path} is not inside the library (nixamp library sources)`;
|
|
38
|
+
query.set("source", String(source["id"]));
|
|
39
|
+
const folder = relative(String(source["root"]), path);
|
|
40
|
+
if (folder)
|
|
41
|
+
query.set("folder", folder);
|
|
42
|
+
}
|
|
43
|
+
else
|
|
44
|
+
query.set("q", targets.join(" "));
|
|
45
|
+
const found = ready((await call("GET", `/api/v1/library/items?${query}`)).body["items"] ?? []);
|
|
46
|
+
return found.length ? found : "nothing ready in the library matches that (nixamp library search WORDS)";
|
|
47
|
+
}
|
|
13
48
|
function flag(argv, name) {
|
|
14
49
|
const at = argv.indexOf(name);
|
|
15
50
|
return at === -1 ? undefined : argv[at + 1];
|
|
@@ -20,7 +55,7 @@ function words(argv) {
|
|
|
20
55
|
for (let at = 0; at < argv.length; at++) {
|
|
21
56
|
const one = argv[at];
|
|
22
57
|
if (one.startsWith("--")) {
|
|
23
|
-
if (!["--json", "--force", "--wait"].includes(one))
|
|
58
|
+
if (!["--json", "--force", "--wait", "--dry-run", "--here"].includes(one))
|
|
24
59
|
at += 1;
|
|
25
60
|
continue;
|
|
26
61
|
}
|
|
@@ -184,15 +219,70 @@ export async function libraryTool(argv) {
|
|
|
184
219
|
return 2;
|
|
185
220
|
}
|
|
186
221
|
case "publish": {
|
|
187
|
-
// On demand on
|
|
188
|
-
//
|
|
189
|
-
|
|
222
|
+
// On demand on live.streaming (guide-vods.ts). ITEM, a folder or search
|
|
223
|
+
// words pick the files; each goes to the guide as its public play
|
|
224
|
+
// address, under this machine's nixamp.com session, so a file on any
|
|
225
|
+
// server lands on the one guide. --here publishes on this server's own.
|
|
190
226
|
const basis = flag(argv, "--basis");
|
|
191
|
-
if (!
|
|
192
|
-
console.error("nixamp library publish needs
|
|
227
|
+
if (!rest.length || !basis) {
|
|
228
|
+
console.error("nixamp library publish needs ITEM, a folder or search words, and --basis owned|permission|licensed|creative-commons|public-domain");
|
|
193
229
|
return 2;
|
|
194
230
|
}
|
|
195
|
-
|
|
231
|
+
const items = await publishPicks(rest, call);
|
|
232
|
+
if (typeof items === "string") {
|
|
233
|
+
console.error(`nixamp: ${items}`);
|
|
234
|
+
return 1;
|
|
235
|
+
}
|
|
236
|
+
const title = items.length === 1 ? flag(argv, "--title") ?? "" : "";
|
|
237
|
+
const note = flag(argv, "--note") ?? "";
|
|
238
|
+
if (argv.includes("--dry-run")) {
|
|
239
|
+
console.log(`${items.map(itemLine).join("\n")}\n${items.length} to publish (--dry-run: nothing sent)`);
|
|
240
|
+
return 0;
|
|
241
|
+
}
|
|
242
|
+
const here = argv.includes("--here");
|
|
243
|
+
const guide = (flag(argv, "--guide") ?? STREAMING_GUIDE).replace(/\/+$/, "");
|
|
244
|
+
const session = here ? null : readSession();
|
|
245
|
+
if (!here && !session?.token) {
|
|
246
|
+
console.error("nixamp: publishing on live.streaming needs a nixamp.com account on this machine: run nixamp login (or pass --here)");
|
|
247
|
+
return 1;
|
|
248
|
+
}
|
|
249
|
+
let failed = 0;
|
|
250
|
+
const done = [];
|
|
251
|
+
for (const item of items) {
|
|
252
|
+
const id = String(item["id"]);
|
|
253
|
+
let answer;
|
|
254
|
+
if (here)
|
|
255
|
+
answer = await call("POST", "/api/v1/guide/vods", { item: id, basis, agree: true, title, note });
|
|
256
|
+
else {
|
|
257
|
+
const play = String(((await call("GET", `/api/v1/library/items/${id}`)).body["item"] ?? {})["playAddress"] ?? "");
|
|
258
|
+
if (!play)
|
|
259
|
+
answer = { status: 409, body: { error: "this server has no public address and listen key to play it from (set one with --public-url)", code: "no_address" } };
|
|
260
|
+
else {
|
|
261
|
+
try {
|
|
262
|
+
const response = await fetch(`${guide}/api/v1/guide/vods`, {
|
|
263
|
+
method: "POST",
|
|
264
|
+
headers: { "content-type": "application/json", authorization: `Bearer ${session.token}` },
|
|
265
|
+
body: JSON.stringify({ play, basis, agree: true, title, note }),
|
|
266
|
+
});
|
|
267
|
+
answer = { status: response.status, body: (await response.json().catch(() => ({}))) };
|
|
268
|
+
}
|
|
269
|
+
catch (error) {
|
|
270
|
+
answer = { status: 503, body: { error: `could not reach ${guide}: ${error.message}`, code: "unreachable" } };
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
done.push({ item: id, status: answer.status, ...answer.body });
|
|
275
|
+
if (answer.status >= 400) {
|
|
276
|
+
failed += 1;
|
|
277
|
+
if (!json)
|
|
278
|
+
console.error(`nixamp: ${itemLine(item)}: ${String(answer.body["error"] ?? "refused")} (${String(answer.body["code"] ?? answer.status)})`);
|
|
279
|
+
}
|
|
280
|
+
else if (!json)
|
|
281
|
+
console.log(`on demand: ${String(answer.body["page"])} ${String(item["title"] || item["rel"] || id)}`);
|
|
282
|
+
}
|
|
283
|
+
if (json)
|
|
284
|
+
console.log(JSON.stringify({ published: done }, null, 2));
|
|
285
|
+
return failed ? 1 : 0;
|
|
196
286
|
}
|
|
197
287
|
case "vods":
|
|
198
288
|
return out(await call("GET", "/api/v1/guide/vods"), (body) => {
|
package/dist/library-routes.d.ts
CHANGED
|
@@ -28,6 +28,8 @@ export interface LibraryContext {
|
|
|
28
28
|
sendFile: (request: IncomingMessage, response: ServerResponse, file: string, cache: string) => void;
|
|
29
29
|
/** The file as a browser plays it (server.ts playFile): the bytes when it can, MP4 or MP3 when not. */
|
|
30
30
|
play?: (request: IncomingMessage, response: ServerResponse, file: string) => Promise<void>;
|
|
31
|
+
/** The item's public play address with the listen key, what a guide publishes on demand; "" when this server has none. */
|
|
32
|
+
playAddress?: (id: string) => string;
|
|
31
33
|
json: (response: ServerResponse, status: number, body: unknown) => void;
|
|
32
34
|
readBody: (request: IncomingMessage) => Promise<string>;
|
|
33
35
|
}
|
package/dist/library-routes.js
CHANGED
|
@@ -237,7 +237,9 @@ export async function handleLibrary(request, response, path, url, ctx) {
|
|
|
237
237
|
return true;
|
|
238
238
|
}
|
|
239
239
|
if (method === "GET") {
|
|
240
|
-
|
|
240
|
+
// The owner also gets where it plays publicly, for publishing it on another server's guide.
|
|
241
|
+
const play = ctx.canWrite && ctx.playAddress ? ctx.playAddress(item.id) : "";
|
|
242
|
+
ctx.json(response, 200, { item: { ...itemView(item, ctx.canWrite), ...(play ? { playAddress: play } : {}) } });
|
|
241
243
|
return true;
|
|
242
244
|
}
|
|
243
245
|
if (method === "PATCH") {
|
package/dist/library-usage.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/** `nixamp library` subcommands and usage, apart so help does not load the client. */
|
|
2
2
|
export declare const LIBRARY_COMMANDS: Set<string>;
|
|
3
|
-
export declare const LIBRARY_USAGE = "nixamp library \u2014 what this server has, indexed\n\n nixamp library PATH the folder the daemon serves (set once)\n nixamp library status items by state, sources, last scans\n nixamp library sources\n nixamp library add PATH index another folder (inside your home, not hidden)\n nixamp library scan [SOURCE] [--force] [--wait]\n nixamp library search WORDS [--artist A] [--album A] [--state failed] [--limit 20]\n nixamp library show ITEM\n nixamp library fix ITEM --title T [--artist A] [--album A] [--genre G] [--track N] [--year N]\n nixamp library remove SOURCE forget a folder; its files are not touched\n nixamp library playlists\n nixamp library playlist new NAME [ITEM...]\n nixamp library playlist show|delete PLAYLIST\n nixamp library playlist add PLAYLIST ITEM...\n nixamp library publish ITEM --basis B [--title T] [--note N]\n on demand on live.streaming: a link that plays
|
|
3
|
+
export declare const LIBRARY_USAGE = "nixamp library \u2014 what this server has, indexed\n\n nixamp library PATH the folder the daemon serves (set once)\n nixamp library status items by state, sources, last scans\n nixamp library sources\n nixamp library add PATH index another folder (inside your home, not hidden)\n nixamp library scan [SOURCE] [--force] [--wait]\n nixamp library search WORDS [--artist A] [--album A] [--state failed] [--limit 20]\n nixamp library show ITEM\n nixamp library fix ITEM --title T [--artist A] [--album A] [--genre G] [--track N] [--year N]\n nixamp library remove SOURCE forget a folder; its files are not touched\n nixamp library playlists\n nixamp library playlist new NAME [ITEM...]\n nixamp library playlist show|delete PLAYLIST\n nixamp library playlist add PLAYLIST ITEM...\n nixamp library publish ITEM... | FOLDER | WORDS --basis B [--title T] [--note N] [--dry-run]\n on demand on live.streaming: a link that plays each from the start,\n from any of your servers (needs nixamp login); --here for this server's own guide\n (B: owned, permission, licensed, creative-commons, public-domain)\n nixamp library vods what is published on demand, with each link\n nixamp library unpublish VOD take one off\n\n --json machine-readable output\n --url, --key another server, as with `nixamp admin`";
|
package/dist/library-usage.js
CHANGED
|
@@ -15,8 +15,9 @@ export const LIBRARY_USAGE = `nixamp library — what this server has, indexed
|
|
|
15
15
|
nixamp library playlist new NAME [ITEM...]
|
|
16
16
|
nixamp library playlist show|delete PLAYLIST
|
|
17
17
|
nixamp library playlist add PLAYLIST ITEM...
|
|
18
|
-
nixamp library publish ITEM --basis B [--title T] [--note N]
|
|
19
|
-
on demand on live.streaming: a link that plays
|
|
18
|
+
nixamp library publish ITEM... | FOLDER | WORDS --basis B [--title T] [--note N] [--dry-run]
|
|
19
|
+
on demand on live.streaming: a link that plays each from the start,
|
|
20
|
+
from any of your servers (needs nixamp login); --here for this server's own guide
|
|
20
21
|
(B: owned, permission, licensed, creative-commons, public-domain)
|
|
21
22
|
nixamp library vods what is published on demand, with each link
|
|
22
23
|
nixamp library unpublish VOD take one off
|
package/dist/server.js
CHANGED
|
@@ -2955,6 +2955,10 @@ export function createHandler(engine, options) {
|
|
|
2955
2955
|
retag: options.library.retag,
|
|
2956
2956
|
sendFile,
|
|
2957
2957
|
play: (req, res, file) => playFile(req, res, file, url, options),
|
|
2958
|
+
playAddress: (id) => {
|
|
2959
|
+
const publicBase = (options.stations?.publicBase?.() ?? "").replace(/\/+$/, "");
|
|
2960
|
+
return publicBase && listenKey ? `${publicBase}/api/v1/library/items/${id}/play?k=${listenKey}` : "";
|
|
2961
|
+
},
|
|
2958
2962
|
json,
|
|
2959
2963
|
readBody,
|
|
2960
2964
|
});
|
package/package.json
CHANGED
package/src/ai-label.ts
CHANGED
|
@@ -698,6 +698,11 @@ export async function writeVeoStory(
|
|
|
698
698
|
return { prompt: clean(item.prompt, 400), cast: [...new Set(who)].slice(0, 3) };
|
|
699
699
|
}).filter((one) => one.prompt.length > 10).slice(0, scenes);
|
|
700
700
|
if (out.length < 1) throw new Error("the model wrote no story");
|
|
701
|
+
// A model asked for many scenes often writes fewer: the rest are its own scenes again, from other angles,
|
|
702
|
+
// so every shot the plan paid for has something to film.
|
|
703
|
+
const angles = ["a different angle and closer", "a wide establishing angle", "a slow tracking shot", "an overhead angle", "a low angle"];
|
|
704
|
+
const written = out.length;
|
|
705
|
+
for (let i = 0; out.length < scenes; i++) out.push({ ...out[i % written]!, prompt: `${out[i % written]!.prompt} Filmed as ${angles[i % angles.length]}.` });
|
|
701
706
|
return out.map((scene) => ({
|
|
702
707
|
cast: scene.cast,
|
|
703
708
|
prompt: `Music video for a fictional ${artist.genre} song. ${scene.prompt} Mood: ${song.style}`.slice(0, 900)
|
package/src/library-cli.ts
CHANGED
|
@@ -10,9 +10,44 @@ import { resolveTarget } from "./admin.ts";
|
|
|
10
10
|
import { KEY_HEADER } from "./share.ts";
|
|
11
11
|
|
|
12
12
|
import { LIBRARY_COMMANDS, LIBRARY_USAGE } from "./library-usage.ts";
|
|
13
|
+
import { readSession } from "./session.ts";
|
|
13
14
|
|
|
14
15
|
export { LIBRARY_COMMANDS, LIBRARY_USAGE };
|
|
15
16
|
|
|
17
|
+
/** The public guide a published file goes on, unless --guide or --here says otherwise. */
|
|
18
|
+
export const STREAMING_GUIDE = "https://live.streaming.pit.world";
|
|
19
|
+
|
|
20
|
+
type Call = (method: string, path: string, body?: unknown) => Promise<{ status: number; body: Record<string, unknown> }>;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* The ready files `publish` means: item ids as they are, a folder on this
|
|
24
|
+
* machine as everything under it, anything else as search words. A message
|
|
25
|
+
* when nothing matches.
|
|
26
|
+
*/
|
|
27
|
+
export async function publishPicks(targets: string[], call: Call): Promise<Record<string, unknown>[] | string> {
|
|
28
|
+
const ready = (items: Record<string, unknown>[]): Record<string, unknown>[] => items.filter((one) => one["state"] === "ready");
|
|
29
|
+
if (targets.every((one) => /^[0-9a-f]{16}$/.test(one))) {
|
|
30
|
+
const items = await Promise.all(targets.map(async (id) => (await call("GET", `/api/v1/library/items/${id}`)).body["item"] as Record<string, unknown> | undefined));
|
|
31
|
+
const found = ready(items.filter((one): one is Record<string, unknown> => Boolean(one)));
|
|
32
|
+
return found.length === targets.length ? found : "not every item is in the library and ready (nixamp library show ITEM)";
|
|
33
|
+
}
|
|
34
|
+
const { existsSync, statSync } = await import("node:fs");
|
|
35
|
+
const { resolve, relative, isAbsolute } = await import("node:path");
|
|
36
|
+
const { homedir } = await import("node:os");
|
|
37
|
+
const path = resolve(targets.join(" ").replace(/^~(?=$|\/)/, homedir()));
|
|
38
|
+
const query = new URLSearchParams({ limit: "500", sort: "path" });
|
|
39
|
+
if (existsSync(path) && statSync(path).isDirectory()) {
|
|
40
|
+
const sources = ((await call("GET", "/api/v1/library/sources")).body["sources"] as Record<string, unknown>[] | undefined) ?? [];
|
|
41
|
+
const source = sources.find((one) => { const rel = relative(String(one["root"] ?? ""), path); return !rel.startsWith("..") && !isAbsolute(rel); });
|
|
42
|
+
if (!source) return `${path} is not inside the library (nixamp library sources)`;
|
|
43
|
+
query.set("source", String(source["id"]));
|
|
44
|
+
const folder = relative(String(source["root"]), path);
|
|
45
|
+
if (folder) query.set("folder", folder);
|
|
46
|
+
} else query.set("q", targets.join(" "));
|
|
47
|
+
const found = ready(((await call("GET", `/api/v1/library/items?${query}`)).body["items"] as Record<string, unknown>[] | undefined) ?? []);
|
|
48
|
+
return found.length ? found : "nothing ready in the library matches that (nixamp library search WORDS)";
|
|
49
|
+
}
|
|
50
|
+
|
|
16
51
|
function flag(argv: string[], name: string): string | undefined {
|
|
17
52
|
const at = argv.indexOf(name);
|
|
18
53
|
return at === -1 ? undefined : argv[at + 1];
|
|
@@ -24,7 +59,7 @@ function words(argv: string[]): string[] {
|
|
|
24
59
|
for (let at = 0; at < argv.length; at++) {
|
|
25
60
|
const one = argv[at]!;
|
|
26
61
|
if (one.startsWith("--")) {
|
|
27
|
-
if (!["--json", "--force", "--wait"].includes(one)) at += 1;
|
|
62
|
+
if (!["--json", "--force", "--wait", "--dry-run", "--here"].includes(one)) at += 1;
|
|
28
63
|
continue;
|
|
29
64
|
}
|
|
30
65
|
out.push(one);
|
|
@@ -162,13 +197,54 @@ export async function libraryTool(argv: string[]): Promise<number> {
|
|
|
162
197
|
return 2;
|
|
163
198
|
}
|
|
164
199
|
case "publish": {
|
|
165
|
-
// On demand on
|
|
166
|
-
//
|
|
167
|
-
|
|
200
|
+
// On demand on live.streaming (guide-vods.ts). ITEM, a folder or search
|
|
201
|
+
// words pick the files; each goes to the guide as its public play
|
|
202
|
+
// address, under this machine's nixamp.com session, so a file on any
|
|
203
|
+
// server lands on the one guide. --here publishes on this server's own.
|
|
168
204
|
const basis = flag(argv, "--basis");
|
|
169
|
-
if (!
|
|
170
|
-
|
|
171
|
-
|
|
205
|
+
if (!rest.length || !basis) { console.error("nixamp library publish needs ITEM, a folder or search words, and --basis owned|permission|licensed|creative-commons|public-domain"); return 2; }
|
|
206
|
+
const items = await publishPicks(rest, call);
|
|
207
|
+
if (typeof items === "string") { console.error(`nixamp: ${items}`); return 1; }
|
|
208
|
+
const title = items.length === 1 ? flag(argv, "--title") ?? "" : "";
|
|
209
|
+
const note = flag(argv, "--note") ?? "";
|
|
210
|
+
if (argv.includes("--dry-run")) {
|
|
211
|
+
console.log(`${items.map(itemLine).join("\n")}\n${items.length} to publish (--dry-run: nothing sent)`);
|
|
212
|
+
return 0;
|
|
213
|
+
}
|
|
214
|
+
const here = argv.includes("--here");
|
|
215
|
+
const guide = (flag(argv, "--guide") ?? STREAMING_GUIDE).replace(/\/+$/, "");
|
|
216
|
+
const session = here ? null : readSession();
|
|
217
|
+
if (!here && !session?.token) { console.error("nixamp: publishing on live.streaming needs a nixamp.com account on this machine: run nixamp login (or pass --here)"); return 1; }
|
|
218
|
+
let failed = 0;
|
|
219
|
+
const done: Record<string, unknown>[] = [];
|
|
220
|
+
for (const item of items) {
|
|
221
|
+
const id = String(item["id"]);
|
|
222
|
+
let answer: { status: number; body: Record<string, unknown> };
|
|
223
|
+
if (here) answer = await call("POST", "/api/v1/guide/vods", { item: id, basis, agree: true, title, note });
|
|
224
|
+
else {
|
|
225
|
+
const play = String((((await call("GET", `/api/v1/library/items/${id}`)).body["item"] ?? {}) as Record<string, unknown>)["playAddress"] ?? "");
|
|
226
|
+
if (!play) answer = { status: 409, body: { error: "this server has no public address and listen key to play it from (set one with --public-url)", code: "no_address" } };
|
|
227
|
+
else {
|
|
228
|
+
try {
|
|
229
|
+
const response = await fetch(`${guide}/api/v1/guide/vods`, {
|
|
230
|
+
method: "POST",
|
|
231
|
+
headers: { "content-type": "application/json", authorization: `Bearer ${session!.token}` },
|
|
232
|
+
body: JSON.stringify({ play, basis, agree: true, title, note }),
|
|
233
|
+
});
|
|
234
|
+
answer = { status: response.status, body: (await response.json().catch(() => ({}))) as Record<string, unknown> };
|
|
235
|
+
} catch (error) {
|
|
236
|
+
answer = { status: 503, body: { error: `could not reach ${guide}: ${(error as Error).message}`, code: "unreachable" } };
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
done.push({ item: id, status: answer.status, ...answer.body });
|
|
241
|
+
if (answer.status >= 400) {
|
|
242
|
+
failed += 1;
|
|
243
|
+
if (!json) console.error(`nixamp: ${itemLine(item)}: ${String(answer.body["error"] ?? "refused")} (${String(answer.body["code"] ?? answer.status)})`);
|
|
244
|
+
} else if (!json) console.log(`on demand: ${String(answer.body["page"])} ${String(item["title"] || item["rel"] || id)}`);
|
|
245
|
+
}
|
|
246
|
+
if (json) console.log(JSON.stringify({ published: done }, null, 2));
|
|
247
|
+
return failed ? 1 : 0;
|
|
172
248
|
}
|
|
173
249
|
case "vods":
|
|
174
250
|
return out(await call("GET", "/api/v1/guide/vods"), (body) => {
|
package/src/library-routes.ts
CHANGED
|
@@ -32,6 +32,8 @@ export interface LibraryContext {
|
|
|
32
32
|
sendFile: (request: IncomingMessage, response: ServerResponse, file: string, cache: string) => void;
|
|
33
33
|
/** The file as a browser plays it (server.ts playFile): the bytes when it can, MP4 or MP3 when not. */
|
|
34
34
|
play?: (request: IncomingMessage, response: ServerResponse, file: string) => Promise<void>;
|
|
35
|
+
/** The item's public play address with the listen key, what a guide publishes on demand; "" when this server has none. */
|
|
36
|
+
playAddress?: (id: string) => string;
|
|
35
37
|
json: (response: ServerResponse, status: number, body: unknown) => void;
|
|
36
38
|
readBody: (request: IncomingMessage) => Promise<string>;
|
|
37
39
|
}
|
|
@@ -267,7 +269,9 @@ export async function handleLibrary(
|
|
|
267
269
|
return true;
|
|
268
270
|
}
|
|
269
271
|
if (method === "GET") {
|
|
270
|
-
|
|
272
|
+
// The owner also gets where it plays publicly, for publishing it on another server's guide.
|
|
273
|
+
const play = ctx.canWrite && ctx.playAddress ? ctx.playAddress(item.id) : "";
|
|
274
|
+
ctx.json(response, 200, { item: { ...itemView(item, ctx.canWrite), ...(play ? { playAddress: play } : {}) } });
|
|
271
275
|
return true;
|
|
272
276
|
}
|
|
273
277
|
if (method === "PATCH") {
|
package/src/library-usage.ts
CHANGED
|
@@ -16,8 +16,9 @@ export const LIBRARY_USAGE = `nixamp library — what this server has, indexed
|
|
|
16
16
|
nixamp library playlist new NAME [ITEM...]
|
|
17
17
|
nixamp library playlist show|delete PLAYLIST
|
|
18
18
|
nixamp library playlist add PLAYLIST ITEM...
|
|
19
|
-
nixamp library publish ITEM --basis B [--title T] [--note N]
|
|
20
|
-
on demand on live.streaming: a link that plays
|
|
19
|
+
nixamp library publish ITEM... | FOLDER | WORDS --basis B [--title T] [--note N] [--dry-run]
|
|
20
|
+
on demand on live.streaming: a link that plays each from the start,
|
|
21
|
+
from any of your servers (needs nixamp login); --here for this server's own guide
|
|
21
22
|
(B: owned, permission, licensed, creative-commons, public-domain)
|
|
22
23
|
nixamp library vods what is published on demand, with each link
|
|
23
24
|
nixamp library unpublish VOD take one off
|
package/src/server.ts
CHANGED
|
@@ -3470,6 +3470,10 @@ export function createHandler(engine: Engine, options: HandlerOptions) {
|
|
|
3470
3470
|
retag: options.library.retag,
|
|
3471
3471
|
sendFile,
|
|
3472
3472
|
play: (req, res, file) => playFile(req, res, file, url, options),
|
|
3473
|
+
playAddress: (id) => {
|
|
3474
|
+
const publicBase = (options.stations?.publicBase?.() ?? "").replace(/\/+$/, "");
|
|
3475
|
+
return publicBase && listenKey ? `${publicBase}/api/v1/library/items/${id}/play?k=${listenKey}` : "";
|
|
3476
|
+
},
|
|
3473
3477
|
json,
|
|
3474
3478
|
readBody,
|
|
3475
3479
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./main-
|
|
1
|
+
import{t as e}from"./main-BD_EbJVT.js";var t={...e,"No parties live right now.":`لا توجد جلسات مباشرة الآن.`,"Could not refresh parties.":`تعذر تحديث الجلسات.`,"Pick a server in the directory, or paste its link here.":`اختر خادمًا من الدليل أو الصق رابطه هنا.`,"Interface language":`لغة الواجهة`,Language:`اللغة`,"Translation language":`لغة الترجمة`,"Original (auto-detect)":`الأصل (اكتشاف تلقائي)`,Play:`تشغيل`,Pause:`إيقاف مؤقت`,Stop:`إيقاف`,Next:`التالي`,Previous:`السابق`,Select:`اختيار`,"Next/Prev":`التالي/السابق`,Quit:`خروج`,"Now Playing":`قيد التشغيل`,"Spectrum Analyser":`محلل الطيف`,Playlist:`قائمة التشغيل`,Files:`الملفات`,"Open files":`فتح ملفات`,"Open folder":`فتح مجلد`,"Add to library":`إضافة إلى المكتبة`,"Replace playlist":`استبدال قائمة التشغيل`,Filter:`تصفية`,Search:`بحث`,"Nothing loaded.":`لم يُحمّل أي محتوى.`,"Empty.":`فارغ.`,"Loading…":`جارٍ التحميل…`,"Connecting…":`جارٍ الاتصال…`,Connected:`متصل`,"Not connected":`غير متصل`,"No source":`لا يوجد مصدر`,Playing:`يعمل`,Stopped:`متوقف`,Volume:`مستوى الصوت`,Seek:`موضع التشغيل`,"Full screen":`ملء الشاشة`,Download:`تنزيل`,Share:`مشاركة`,Copy:`نسخ`,"Copy link":`نسخ الرابط`,Copied:`تم النسخ`,Save:`حفظ`,Cancel:`إلغاء`,Close:`إغلاق`,Remove:`إزالة`,Delete:`حذف`,Edit:`تعديل`,Add:`إضافة`,Send:`إرسال`,Retry:`إعادة المحاولة`,Back:`رجوع`,"Next page":`الصفحة التالية`,"Previous page":`الصفحة السابقة`,"Show more":`عرض المزيد`,Panels:`اللوحات`,"Reset layout":`إعادة ضبط التخطيط`,Show:`إظهار`,Hide:`إخفاء`,Collapse:`طي`,Expand:`توسيع`,"Move up":`نقل لأعلى`,"Move down":`نقل لأسفل`,Install:`تثبيت`,"TV mode":`وضع التلفاز`,On:`مفعّل`,Off:`معطّل`,Account:`الحساب`,"Sign in":`تسجيل الدخول`,"Sign out":`تسجيل الخروج`,"Create account":`إنشاء حساب`,Email:`البريد الإلكتروني`,Password:`كلمة المرور`,"Forgot password?":`نسيت كلمة المرور؟`,"Welcome back":`مرحبًا بعودتك`,Profile:`الملف الشخصي`,Handle:`اسم المستخدم`,"Your servers":`خوادمك`,Server:`الخادم`,Connect:`اتصال`,Disconnect:`قطع الاتصال`,Directory:`الدليل`,Favourites:`المفضلة`,Follow:`متابعة`,Unfollow:`إلغاء المتابعة`,Notifications:`الإشعارات`,"Phone number":`رقم الهاتف`,"Save number":`حفظ الرقم`,Transcript:`النص المفرغ`,Captions:`الترجمة النصية`,"Translate audio":`ترجمة الصوت`,"Audio language":`لغة الصوت`,"Audio options":`خيارات الصوت`,"Keep background sound":`الاحتفاظ بأصوات الخلفية`,"Background level":`مستوى صوت الخلفية`,"Speaker voices":`أصوات المتحدثين`,"Any voice":`أي صوت`,"Male voice":`صوت رجالي`,"Female voice":`صوت نسائي`,"Original audio.":`الصوت الأصلي.`,"Buy translated audio":`شراء الصوت المترجم`,"Audio credit":`رصيد الصوت`,"Buy pass":`شراء تصريح`,Pass:`تصريح`,"Pay with":`الدفع باستخدام`,"Check payment":`التحقق من الدفع`,"Open checkout":`الانتقال للدفع`,"Free sessions":`جلسات مجانية`,"Usage rates and expiry":`الأسعار ومدة الصلاحية`,Catalogs:`الكتالوجات`,"Add catalog":`إضافة كتالوج`,"Catalog name":`اسم الكتالوج`,Link:`الرابط`,"Play link":`تشغيل الرابط`,"Go live":`بدء بث مباشر`,Publish:`نشر`,Listen:`استماع`,"Live now":`مباشر الآن`,Upcoming:`قريبًا`,Parties:`حفلات المشاهدة`,"Join party":`الانضمام للحفلة`,"Invite code":`رمز الدعوة`,Invite:`دعوة`,Chat:`الدردشة`,"Chat message":`رسالة دردشة`,People:`الأشخاص`,Speaker:`متحدث`,Speakers:`المتحدثون`,Listener:`مستمع`,Moderator:`مشرف`,"Raise hand":`رفع اليد`,"Hand raises":`الأيدي المرفوعة`,Questions:`الأسئلة`,Resources:`الموارد`,Replay:`إعادة العرض`,Schedule:`الجدول`,Event:`الفعالية`,Host:`المضيف`,About:`حول`,Stage:`المنصة`,Title:`العنوان`,Description:`الوصف`,Topic:`الموضوع`,Public:`عام`,"Anyone with the link":`أي شخص لديه الرابط`,"Invited people":`الأشخاص المدعوون`,"Who can join":`من يمكنه الانضمام`,"Date and time":`التاريخ والوقت`,"Expected length":`المدة المتوقعة`,Repeat:`تكرار`,"Does not repeat":`لا يتكرر`,"Every day":`كل يوم`,"Every week":`كل أسبوع`,Homepage:`الموقع الإلكتروني`,"Host name":`اسم المضيف`,"Profile photo URL":`رابط صورة الملف الشخصي`,"Broadcast link":`رابط البث`,"Edit event":`تعديل الفعالية`,"Save changes":`حفظ التغييرات`,"Create live":`إنشاء بث مباشر`,"Schedule class":`جدولة درس`,"Start class":`بدء الدرس`,"End event":`إنهاء الفعالية`,"End session":`إنهاء الجلسة`,"Session ended":`انتهت الجلسة`,"Event ended":`انتهت الفعالية`,Cancelled:`ملغاة`,"Replay available":`إعادة العرض متاحة`,Join:`انضمام`,"Create invite":`إنشاء دعوة`,"Invite as":`الدعوة بصفة`,"Watch now":`شاهد الآن`,"Start a room":`إنشاء غرفة`,"Recent replays":`إعادات العرض الأخيرة`,"Your account":`حسابك`,"Write with AI":`الكتابة بالذكاء الاصطناعي`,"Suggested title":`العنوان المقترح`,"Suggested description":`الوصف المقترح`,"Suggested topic":`الموضوع المقترح`,"Use these details":`استخدام هذه التفاصيل`,"Learn something live.":`تعلّم شيئًا مباشرة.`,"Screen share":`مشاركة الشاشة`,"Upload and broadcast":`رفع وبث`,Help:`مساعدة`,"Reload Player":`إعادة تحميل المشغل`,"Copy Bundled CLI Path":`نسخ مسار أداة سطر الأوامر المضمنة`,"Developer tools":`أدوات المطور`,Undo:`تراجع`,Redo:`إعادة`,Cut:`قص`,Paste:`لصق`,"Select all":`تحديد الكل`,Status:`الحالة`,"Activity log":`سجل النشاط`,Admin:`الإدارة`,"Playback controls":`عناصر التحكم بالتشغيل`,"Tracks and folders":`المقاطع والمجلدات`,"Original-language captions.":`ترجمة نصية باللغة الأصلية.`,"Skip to playback controls":`الانتقال إلى عناصر التحكم بالتشغيل`,"Skip to playlist":`الانتقال إلى قائمة التشغيل`,"Skip to transcript and translated audio":`الانتقال إلى النص المفرغ والصوت المترجم`};export{t as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./main-
|
|
1
|
+
import{t as e}from"./main-BD_EbJVT.js";var t={...e,"No parties live right now.":`Právě neprobíhají žádné párty.`,"Could not refresh parties.":`Párty se nepodařilo aktualizovat.`,"Pick a server in the directory, or paste its link here.":`Vyberte server v seznamu nebo sem vložte jeho odkaz.`,"Interface language":`Jazyk rozhraní`,Language:`Jazyk`,"Translation language":`Jazyk překladu`,"Original (auto-detect)":`Původní (automatické rozpoznání)`,Play:`Přehrát`,Pause:`Pozastavit`,Stop:`Zastavit`,Next:`Další`,Previous:`Předchozí`,Select:`Vybrat`,"Next/Prev":`Další/Předchozí`,Quit:`Ukončit`,"Now Playing":`Právě hraje`,"Spectrum Analyser":`Spektrální analyzátor`,Playlist:`Seznam skladeb`,Files:`Soubory`,"Open files":`Otevřít soubory`,"Open folder":`Otevřít složku`,"Add to library":`Přidat do knihovny`,"Replace playlist":`Nahradit seznam`,Filter:`Filtrovat`,Search:`Hledat`,"Nothing loaded.":`Nic není načteno.`,"Empty.":`Prázdné.`,"Loading…":`Načítání…`,"Connecting…":`Připojování…`,Connected:`Připojeno`,"Not connected":`Nepřipojeno`,"No source":`Žádný zdroj`,Playing:`Přehrávání`,Stopped:`Zastaveno`,Volume:`Hlasitost`,Seek:`Pozice přehrávání`,"Full screen":`Celá obrazovka`,Download:`Stáhnout`,Share:`Sdílet`,Copy:`Kopírovat`,"Copy link":`Kopírovat odkaz`,Copied:`Zkopírováno`,Save:`Uložit`,Cancel:`Zrušit`,Close:`Zavřít`,Remove:`Odebrat`,Delete:`Smazat`,Edit:`Upravit`,Add:`Přidat`,Send:`Odeslat`,Retry:`Zkusit znovu`,Back:`Zpět`,"Next page":`Další stránka`,"Previous page":`Předchozí stránka`,"Show more":`Zobrazit více`,Panels:`Panely`,"Reset layout":`Obnovit rozložení`,Show:`Zobrazit`,Hide:`Skrýt`,Collapse:`Sbalit`,Expand:`Rozbalit`,"Move up":`Nahoru`,"Move down":`Dolů`,Install:`Nainstalovat`,"TV mode":`Režim TV`,On:`Zapnuto`,Off:`Vypnuto`,Account:`Účet`,"Sign in":`Přihlásit se`,"Sign out":`Odhlásit se`,"Create account":`Vytvořit účet`,Email:`E-mail`,Password:`Heslo`,"Forgot password?":`Zapomenuté heslo?`,"Welcome back":`Vítejte zpět`,Profile:`Profil`,Handle:`Uživatelské jméno`,"Your servers":`Vaše servery`,Server:`Server`,Connect:`Připojit`,Disconnect:`Odpojit`,Directory:`Adresář`,Favourites:`Oblíbené`,Follow:`Sledovat`,Unfollow:`Přestat sledovat`,Notifications:`Oznámení`,"Phone number":`Telefonní číslo`,"Save number":`Uložit číslo`,Transcript:`Přepis`,Captions:`Titulky`,"Translate audio":`Překládat zvuk`,"Audio language":`Jazyk zvuku`,"Audio options":`Možnosti zvuku`,"Keep background sound":`Zachovat zvuk na pozadí`,"Background level":`Hlasitost pozadí`,"Speaker voices":`Hlasy mluvčích`,"Any voice":`Libovolný hlas`,"Male voice":`Mužský hlas`,"Female voice":`Ženský hlas`,"Original audio.":`Původní zvuk.`,"Buy translated audio":`Koupit překlad zvuku`,"Audio credit":`Zvukový kredit`,"Buy pass":`Koupit přístup`,Pass:`Přístup`,"Pay with":`Zaplatit pomocí`,"Check payment":`Ověřit platbu`,"Open checkout":`Přejít k platbě`,"Free sessions":`Bezplatné relace`,"Usage rates and expiry":`Ceny a platnost`,Catalogs:`Katalogy`,"Add catalog":`Přidat katalog`,"Catalog name":`Název katalogu`,Link:`Odkaz`,"Play link":`Přehrát odkaz`,"Go live":`Vysílat živě`,Publish:`Zveřejnit`,Listen:`Poslouchat`,"Live now":`Právě živě`,Upcoming:`Připravované`,Parties:`Společná sledování`,"Join party":`Připojit se ke sledování`,"Invite code":`Kód pozvánky`,Invite:`Pozvat`,Chat:`Chat`,"Chat message":`Zpráva chatu`,People:`Lidé`,Speaker:`Mluvčí`,Speakers:`Mluvčí`,Listener:`Posluchač`,Moderator:`Moderátor`,"Raise hand":`Zvednout ruku`,"Hand raises":`Zvednuté ruce`,Questions:`Otázky`,Resources:`Materiály`,Replay:`Záznam`,Schedule:`Rozvrh`,Event:`Událost`,Host:`Pořadatel`,About:`O události`,Stage:`Pódium`,Title:`Název`,Description:`Popis`,Topic:`Téma`,Public:`Veřejné`,"Anyone with the link":`Kdokoli s odkazem`,"Invited people":`Pozvané osoby`,"Who can join":`Kdo se může připojit`,"Date and time":`Datum a čas`,"Expected length":`Očekávaná délka`,Repeat:`Opakovat`,"Does not repeat":`Neopakuje se`,"Every day":`Každý den`,"Every week":`Každý týden`,Homepage:`Webové stránky`,"Host name":`Jméno pořadatele`,"Profile photo URL":`URL profilové fotky`,"Broadcast link":`Odkaz na vysílání`,"Edit event":`Upravit událost`,"Save changes":`Uložit změny`,"Create live":`Vytvořit vysílání`,"Schedule class":`Naplánovat lekci`,"Start class":`Zahájit lekci`,"End event":`Ukončit událost`,"End session":`Ukončit relaci`,"Session ended":`Relace ukončena`,"Event ended":`Událost ukončena`,Cancelled:`Zrušeno`,"Replay available":`Záznam je k dispozici`,Join:`Připojit se`,"Create invite":`Vytvořit pozvánku`,"Invite as":`Pozvat jako`,"Watch now":`Sledovat nyní`,"Start a room":`Vytvořit místnost`,"Recent replays":`Nedávné záznamy`,"Your account":`Váš účet`,"Write with AI":`Psát pomocí AI`,"Suggested title":`Navrhovaný název`,"Suggested description":`Navrhovaný popis`,"Suggested topic":`Navrhované téma`,"Use these details":`Použít tyto údaje`,"Learn something live.":`Učte se naživo.`,"Screen share":`Sdílet obrazovku`,"Upload and broadcast":`Nahrát a vysílat`,Help:`Nápověda`,"Reload Player":`Znovu načíst přehrávač`,"Copy Bundled CLI Path":`Kopírovat cestu k přibalenému CLI`,"Developer tools":`Vývojářské nástroje`,Undo:`Zpět`,Redo:`Znovu`,Cut:`Vyjmout`,Paste:`Vložit`,"Select all":`Vybrat vše`,Status:`Stav`,"Activity log":`Protokol aktivit`,Admin:`Správa`,"Playback controls":`Ovládání přehrávání`,"Tracks and folders":`Skladby a složky`,"Original-language captions.":`Titulky v původním jazyce.`,"Skip to playback controls":`Přejít k ovládání přehrávání`,"Skip to playlist":`Přejít k seznamu skladeb`,"Skip to transcript and translated audio":`Přejít k přepisu a přeloženému zvuku`};export{t as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./main-
|
|
1
|
+
import{t as e}from"./main-BD_EbJVT.js";var t={...e,"No parties live right now.":`Ingen fester er live lige nu.`,"Could not refresh parties.":`Kunne ikke opdatere festerne.`,"Pick a server in the directory, or paste its link here.":`Vælg en server i oversigten, eller indsæt dens link her.`,"Interface language":`Grænsefladesprog`,Language:`Sprog`,"Translation language":`Oversættelsessprog`,"Original (auto-detect)":`Original (automatisk registrering)`,Play:`Afspil`,Pause:`Pause`,Stop:`Stop`,Next:`Næste`,Previous:`Forrige`,Select:`Vælg`,"Next/Prev":`Næste/Forrige`,Quit:`Afslut`,"Now Playing":`Afspilles nu`,"Spectrum Analyser":`Spektrumanalysator`,Playlist:`Afspilningsliste`,Files:`Filer`,"Open files":`Åbn filer`,"Open folder":`Åbn mappe`,"Add to library":`Føj til bibliotek`,"Replace playlist":`Erstat afspilningsliste`,Filter:`Filtrer`,Search:`Søg`,"Nothing loaded.":`Intet indlæst.`,"Empty.":`Tomt.`,"Loading…":`Indlæser…`,"Connecting…":`Forbinder…`,Connected:`Forbundet`,"Not connected":`Ikke forbundet`,"No source":`Ingen kilde`,Playing:`Afspiller`,Stopped:`Stoppet`,Volume:`Lydstyrke`,Seek:`Afspilningsposition`,"Full screen":`Fuld skærm`,Download:`Download`,Share:`Del`,Copy:`Kopiér`,"Copy link":`Kopiér link`,Copied:`Kopieret`,Save:`Gem`,Cancel:`Annuller`,Close:`Luk`,Remove:`Fjern`,Delete:`Slet`,Edit:`Rediger`,Add:`Tilføj`,Send:`Send`,Retry:`Prøv igen`,Back:`Tilbage`,"Next page":`Næste side`,"Previous page":`Forrige side`,"Show more":`Vis flere`,Panels:`Paneler`,"Reset layout":`Nulstil layout`,Show:`Vis`,Hide:`Skjul`,Collapse:`Fold sammen`,Expand:`Fold ud`,"Move up":`Flyt op`,"Move down":`Flyt ned`,Install:`Installer`,"TV mode":`TV-tilstand`,On:`Til`,Off:`Fra`,Account:`Konto`,"Sign in":`Log ind`,"Sign out":`Log ud`,"Create account":`Opret konto`,Email:`E-mail`,Password:`Adgangskode`,"Forgot password?":`Glemt adgangskode?`,"Welcome back":`Velkommen tilbage`,Profile:`Profil`,Handle:`Brugernavn`,"Your servers":`Dine servere`,Server:`Server`,Connect:`Forbind`,Disconnect:`Afbryd`,Directory:`Oversigt`,Favourites:`Favoritter`,Follow:`Følg`,Unfollow:`Følg ikke længere`,Notifications:`Notifikationer`,"Phone number":`Telefonnummer`,"Save number":`Gem nummer`,Transcript:`Transskription`,Captions:`Undertekster`,"Translate audio":`Oversæt lyd`,"Audio language":`Lydsprog`,"Audio options":`Lydindstillinger`,"Keep background sound":`Bevar baggrundslyd`,"Background level":`Baggrundslydstyrke`,"Speaker voices":`Talernes stemmer`,"Any voice":`Vilkårlig stemme`,"Male voice":`Mandlig stemme`,"Female voice":`Kvindelig stemme`,"Original audio.":`Original lyd.`,"Buy translated audio":`Køb oversat lyd`,"Audio credit":`Lydsaldo`,"Buy pass":`Køb adgang`,Pass:`Adgang`,"Pay with":`Betal med`,"Check payment":`Kontrollér betaling`,"Open checkout":`Gå til betaling`,"Free sessions":`Gratis sessioner`,"Usage rates and expiry":`Priser og udløb`,Catalogs:`Kataloger`,"Add catalog":`Tilføj katalog`,"Catalog name":`Katalognavn`,Link:`Link`,"Play link":`Afspil link`,"Go live":`Gå live`,Publish:`Udgiv`,Listen:`Lyt`,"Live now":`Live nu`,Upcoming:`Kommende`,Parties:`Seerfester`,"Join party":`Deltag i festen`,"Invite code":`Invitationskode`,Invite:`Inviter`,Chat:`Chat`,"Chat message":`Chatbesked`,People:`Personer`,Speaker:`Taler`,Speakers:`Talere`,Listener:`Lytter`,Moderator:`Moderator`,"Raise hand":`Ræk hånden op`,"Hand raises":`Oprakte hænder`,Questions:`Spørgsmål`,Resources:`Materialer`,Replay:`Genudsendelse`,Schedule:`Program`,Event:`Begivenhed`,Host:`Vært`,About:`Om`,Stage:`Scene`,Title:`Titel`,Description:`Beskrivelse`,Topic:`Emne`,Public:`Offentlig`,"Anyone with the link":`Alle med linket`,"Invited people":`Inviterede personer`,"Who can join":`Hvem kan deltage`,"Date and time":`Dato og klokkeslæt`,"Expected length":`Forventet varighed`,Repeat:`Gentag`,"Does not repeat":`Gentages ikke`,"Every day":`Hver dag`,"Every week":`Hver uge`,Homepage:`Hjemmeside`,"Host name":`Værtens navn`,"Profile photo URL":`URL til profilbillede`,"Broadcast link":`Udsendelseslink`,"Edit event":`Rediger begivenhed`,"Save changes":`Gem ændringer`,"Create live":`Opret livesending`,"Schedule class":`Planlæg undervisning`,"Start class":`Start undervisning`,"End event":`Afslut begivenhed`,"End session":`Afslut session`,"Session ended":`Session afsluttet`,"Event ended":`Begivenhed afsluttet`,Cancelled:`Annulleret`,"Replay available":`Genudsendelse tilgængelig`,Join:`Deltag`,"Create invite":`Opret invitation`,"Invite as":`Inviter som`,"Watch now":`Se nu`,"Start a room":`Opret et rum`,"Recent replays":`Seneste genudsendelser`,"Your account":`Din konto`,"Write with AI":`Skriv med AI`,"Suggested title":`Foreslået titel`,"Suggested description":`Foreslået beskrivelse`,"Suggested topic":`Foreslået emne`,"Use these details":`Brug disse oplysninger`,"Learn something live.":`Lær noget live.`,"Screen share":`Del skærm`,"Upload and broadcast":`Upload og udsend`,Help:`Hjælp`,"Reload Player":`Genindlæs afspiller`,"Copy Bundled CLI Path":`Kopiér stien til medfølgende CLI`,"Developer tools":`Udviklerværktøjer`,Undo:`Fortryd`,Redo:`Gentag`,Cut:`Klip`,Paste:`Indsæt`,"Select all":`Vælg alle`,Status:`Status`,"Activity log":`Aktivitetslog`,Admin:`Administration`,"Playback controls":`Afspilningskontroller`,"Tracks and folders":`Numre og mapper`,"Original-language captions.":`Undertekster på originalsproget.`,"Skip to playback controls":`Spring til afspilningskontroller`,"Skip to playlist":`Spring til afspilningslisten`,"Skip to transcript and translated audio":`Spring til transskription og oversat lyd`};export{t as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./main-
|
|
1
|
+
import{t as e}from"./main-BD_EbJVT.js";var t={...e,"No parties live right now.":`Gerade sind keine Partys live.`,"Could not refresh parties.":`Partys konnten nicht aktualisiert werden.`,"Pick a server in the directory, or paste its link here.":`Wähle einen Server im Verzeichnis oder füge seinen Link hier ein.`,"Interface language":`Sprache der Oberfläche`,Language:`Sprache`,"Translation language":`Übersetzungssprache`,"Original (auto-detect)":`Original (automatisch erkennen)`,Play:`Abspielen`,Pause:`Pause`,Stop:`Stopp`,Next:`Weiter`,Previous:`Zurück`,Select:`Auswählen`,"Next/Prev":`Weiter/Zurück`,Quit:`Beenden`,"Now Playing":`Aktuelle Wiedergabe`,"Spectrum Analyser":`Spektrumanalysator`,Playlist:`Wiedergabeliste`,Files:`Dateien`,"Open files":`Dateien öffnen`,"Open folder":`Ordner öffnen`,"Add to library":`Zur Mediathek hinzufügen`,"Replace playlist":`Wiedergabeliste ersetzen`,Filter:`Filtern`,Search:`Suchen`,"Nothing loaded.":`Nichts geladen.`,"Empty.":`Leer.`,"Loading…":`Wird geladen…`,"Connecting…":`Verbindung wird hergestellt…`,Connected:`Verbunden`,"Not connected":`Nicht verbunden`,"No source":`Keine Quelle`,Playing:`Wiedergabe`,Stopped:`Gestoppt`,Volume:`Lautstärke`,Seek:`Wiedergabeposition`,"Full screen":`Vollbild`,Download:`Herunterladen`,Share:`Teilen`,Copy:`Kopieren`,"Copy link":`Link kopieren`,Copied:`Kopiert`,Save:`Speichern`,Cancel:`Abbrechen`,Close:`Schließen`,Remove:`Entfernen`,Delete:`Löschen`,Edit:`Bearbeiten`,Add:`Hinzufügen`,Send:`Senden`,Retry:`Erneut versuchen`,Back:`Zurück`,"Next page":`Nächste Seite`,"Previous page":`Vorherige Seite`,"Show more":`Mehr anzeigen`,Panels:`Bereiche`,"Reset layout":`Anordnung zurücksetzen`,Show:`Anzeigen`,Hide:`Ausblenden`,Collapse:`Einklappen`,Expand:`Ausklappen`,"Move up":`Nach oben`,"Move down":`Nach unten`,Install:`Installieren`,"TV mode":`TV-Modus`,On:`Ein`,Off:`Aus`,Account:`Konto`,"Sign in":`Anmelden`,"Sign out":`Abmelden`,"Create account":`Konto erstellen`,Email:`E-Mail`,Password:`Passwort`,"Forgot password?":`Passwort vergessen?`,"Welcome back":`Willkommen zurück`,Profile:`Profil`,Handle:`Benutzername`,"Your servers":`Deine Server`,Server:`Server`,Connect:`Verbinden`,Disconnect:`Trennen`,Directory:`Verzeichnis`,Favourites:`Favoriten`,Follow:`Folgen`,Unfollow:`Nicht mehr folgen`,Notifications:`Benachrichtigungen`,"Phone number":`Telefonnummer`,"Save number":`Nummer speichern`,Transcript:`Transkript`,Captions:`Untertitel`,"Translate audio":`Audio übersetzen`,"Audio language":`Audiosprache`,"Audio options":`Audiooptionen`,"Keep background sound":`Hintergrundgeräusche beibehalten`,"Background level":`Hintergrundlautstärke`,"Speaker voices":`Sprecherstimmen`,"Any voice":`Beliebige Stimme`,"Male voice":`Männliche Stimme`,"Female voice":`Weibliche Stimme`,"Original audio.":`Originalton.`,"Buy translated audio":`Übersetztes Audio kaufen`,"Audio credit":`Audioguthaben`,"Buy pass":`Pass kaufen`,Pass:`Pass`,"Pay with":`Bezahlen mit`,"Check payment":`Zahlung prüfen`,"Open checkout":`Zur Kasse`,"Free sessions":`Kostenlose Sitzungen`,"Usage rates and expiry":`Nutzungspreise und Ablauf`,Catalogs:`Kataloge`,"Add catalog":`Katalog hinzufügen`,"Catalog name":`Katalogname`,Link:`Link`,"Play link":`Link abspielen`,"Go live":`Live gehen`,Publish:`Veröffentlichen`,Listen:`Anhören`,"Live now":`Jetzt live`,Upcoming:`Demnächst`,Parties:`Watchpartys`,"Join party":`Party beitreten`,"Invite code":`Einladungscode`,Invite:`Einladen`,Chat:`Chat`,"Chat message":`Chatnachricht`,People:`Personen`,Speaker:`Sprecher`,Speakers:`Sprecher`,Listener:`Zuhörer`,Moderator:`Moderator`,"Raise hand":`Hand heben`,"Hand raises":`Wortmeldungen`,Questions:`Fragen`,Resources:`Materialien`,Replay:`Aufzeichnung`,Schedule:`Zeitplan`,Event:`Veranstaltung`,Host:`Gastgeber`,About:`Über`,Stage:`Bühne`,Title:`Titel`,Description:`Beschreibung`,Topic:`Thema`,Public:`Öffentlich`,"Anyone with the link":`Alle mit dem Link`,"Invited people":`Eingeladene Personen`,"Who can join":`Wer teilnehmen kann`,"Date and time":`Datum und Uhrzeit`,"Expected length":`Geplante Dauer`,Repeat:`Wiederholen`,"Does not repeat":`Keine Wiederholung`,"Every day":`Jeden Tag`,"Every week":`Jede Woche`,Homepage:`Webseite`,"Host name":`Name des Gastgebers`,"Profile photo URL":`URL des Profilbilds`,"Broadcast link":`Übertragungslink`,"Edit event":`Veranstaltung bearbeiten`,"Save changes":`Änderungen speichern`,"Create live":`Live-Übertragung erstellen`,"Schedule class":`Kurs planen`,"Start class":`Kurs starten`,"End event":`Veranstaltung beenden`,"End session":`Sitzung beenden`,"Session ended":`Sitzung beendet`,"Event ended":`Veranstaltung beendet`,Cancelled:`Abgesagt`,"Replay available":`Aufzeichnung verfügbar`,Join:`Beitreten`,"Create invite":`Einladung erstellen`,"Invite as":`Einladen als`,"Watch now":`Jetzt ansehen`,"Start a room":`Raum eröffnen`,"Recent replays":`Neueste Aufzeichnungen`,"Your account":`Dein Konto`,"Write with AI":`Mit KI schreiben`,"Suggested title":`Titelvorschlag`,"Suggested description":`Beschreibungsvorschlag`,"Suggested topic":`Themenvorschlag`,"Use these details":`Diese Angaben verwenden`,"Learn something live.":`Lerne etwas live.`,"Screen share":`Bildschirm teilen`,"Upload and broadcast":`Hochladen und übertragen`,Help:`Hilfe`,"Reload Player":`Player neu laden`,"Copy Bundled CLI Path":`Pfad zur gebündelten CLI kopieren`,"Developer tools":`Entwicklerwerkzeuge`,Undo:`Rückgängig`,Redo:`Wiederholen`,Cut:`Ausschneiden`,Paste:`Einfügen`,"Select all":`Alles auswählen`,Status:`Status`,"Activity log":`Aktivitätsprotokoll`,Admin:`Verwaltung`,"Playback controls":`Wiedergabesteuerung`,"Tracks and folders":`Titel und Ordner`,"Original-language captions.":`Untertitel in der Originalsprache.`,"Skip to playback controls":`Zur Wiedergabesteuerung springen`,"Skip to playlist":`Zur Wiedergabeliste springen`,"Skip to transcript and translated audio":`Zum Transkript und übersetzten Audio springen`};export{t as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./main-
|
|
1
|
+
import{t as e}from"./main-BD_EbJVT.js";var t={...e,"No parties live right now.":`No hay fiestas en directo ahora.`,"Could not refresh parties.":`No se pudieron actualizar las fiestas.`,"Pick a server in the directory, or paste its link here.":`Elige un servidor del directorio o pega su enlace aquí.`,"Interface language":`Idioma de la interfaz`,Language:`Idioma`,"Translation language":`Idioma de traducción`,"Original (auto-detect)":`Original (detección automática)`,Play:`Reproducir`,Pause:`Pausar`,Stop:`Detener`,Next:`Siguiente`,Previous:`Anterior`,Select:`Seleccionar`,"Next/Prev":`Siguiente/Anterior`,Quit:`Salir`,"Now Playing":`Reproduciendo`,"Spectrum Analyser":`Analizador de espectro`,Playlist:`Lista de reproducción`,Files:`Archivos`,"Open files":`Abrir archivos`,"Open folder":`Abrir carpeta`,"Add to library":`Añadir a la biblioteca`,"Replace playlist":`Reemplazar lista`,Filter:`Filtrar`,Search:`Buscar`,"Nothing loaded.":`No hay nada cargado.`,"Empty.":`Vacío.`,"Loading…":`Cargando…`,"Connecting…":`Conectando…`,Connected:`Conectado`,"Not connected":`Sin conexión`,"No source":`Sin fuente`,Playing:`Reproduciendo`,Stopped:`Detenido`,Volume:`Volumen`,Seek:`Posición de reproducción`,"Full screen":`Pantalla completa`,Download:`Descargar`,Share:`Compartir`,Copy:`Copiar`,"Copy link":`Copiar enlace`,Copied:`Copiado`,Save:`Guardar`,Cancel:`Cancelar`,Close:`Cerrar`,Remove:`Quitar`,Delete:`Eliminar`,Edit:`Editar`,Add:`Añadir`,Send:`Enviar`,Retry:`Reintentar`,Back:`Volver`,"Next page":`Página siguiente`,"Previous page":`Página anterior`,"Show more":`Mostrar más`,Panels:`Paneles`,"Reset layout":`Restablecer diseño`,Show:`Mostrar`,Hide:`Ocultar`,Collapse:`Contraer`,Expand:`Expandir`,"Move up":`Subir`,"Move down":`Bajar`,Install:`Instalar`,"TV mode":`Modo TV`,On:`Activado`,Off:`Desactivado`,Account:`Cuenta`,"Sign in":`Iniciar sesión`,"Sign out":`Cerrar sesión`,"Create account":`Crear cuenta`,Email:`Correo electrónico`,Password:`Contraseña`,"Forgot password?":`¿Olvidaste tu contraseña?`,"Welcome back":`Te damos la bienvenida de nuevo`,Profile:`Perfil`,Handle:`Nombre de usuario`,"Your servers":`Tus servidores`,Server:`Servidor`,Connect:`Conectar`,Disconnect:`Desconectar`,Directory:`Directorio`,Favourites:`Favoritos`,Follow:`Seguir`,Unfollow:`Dejar de seguir`,Notifications:`Notificaciones`,"Phone number":`Número de teléfono`,"Save number":`Guardar número`,Transcript:`Transcripción`,Captions:`Subtítulos`,"Translate audio":`Traducir audio`,"Audio language":`Idioma del audio`,"Audio options":`Opciones de audio`,"Keep background sound":`Conservar sonido de fondo`,"Background level":`Volumen de fondo`,"Speaker voices":`Voces de los hablantes`,"Any voice":`Cualquier voz`,"Male voice":`Voz masculina`,"Female voice":`Voz femenina`,"Original audio.":`Audio original.`,"Buy translated audio":`Comprar audio traducido`,"Audio credit":`Saldo de audio`,"Buy pass":`Comprar pase`,Pass:`Pase`,"Pay with":`Pagar con`,"Check payment":`Comprobar pago`,"Open checkout":`Ir al pago`,"Free sessions":`Sesiones gratuitas`,"Usage rates and expiry":`Tarifas de uso y caducidad`,Catalogs:`Catálogos`,"Add catalog":`Añadir catálogo`,"Catalog name":`Nombre del catálogo`,Link:`Enlace`,"Play link":`Reproducir enlace`,"Go live":`Transmitir en directo`,Publish:`Publicar`,Listen:`Escuchar`,"Live now":`En directo`,Upcoming:`Próximamente`,Parties:`Fiestas`,"Join party":`Unirse a la fiesta`,"Invite code":`Código de invitación`,Invite:`Invitar`,Chat:`Chat`,"Chat message":`Mensaje de chat`,People:`Personas`,Speaker:`Hablante`,Speakers:`Hablantes`,Listener:`Oyente`,Moderator:`Moderador`,"Raise hand":`Levantar la mano`,"Hand raises":`Manos levantadas`,Questions:`Preguntas`,Resources:`Recursos`,Replay:`Repetición`,Schedule:`Programación`,Event:`Evento`,Host:`Anfitrión`,About:`Acerca de`,Stage:`Escenario`,Title:`Título`,Description:`Descripción`,Topic:`Tema`,Public:`Público`,"Anyone with the link":`Cualquiera con el enlace`,"Invited people":`Personas invitadas`,"Who can join":`Quién puede unirse`,"Date and time":`Fecha y hora`,"Expected length":`Duración prevista`,Repeat:`Repetir`,"Does not repeat":`No se repite`,"Every day":`Cada día`,"Every week":`Cada semana`,Homepage:`Página web`,"Host name":`Nombre del anfitrión`,"Profile photo URL":`URL de la foto de perfil`,"Broadcast link":`Enlace de transmisión`,"Edit event":`Editar evento`,"Save changes":`Guardar cambios`,"Create live":`Crear directo`,"Schedule class":`Programar clase`,"Start class":`Iniciar clase`,"End event":`Finalizar evento`,"End session":`Finalizar sesión`,"Session ended":`Sesión finalizada`,"Event ended":`Evento finalizado`,Cancelled:`Cancelado`,"Replay available":`Repetición disponible`,Join:`Unirse`,"Create invite":`Crear invitación`,"Invite as":`Invitar como`,"Watch now":`Ver ahora`,"Start a room":`Crear una sala`,"Recent replays":`Repeticiones recientes`,"Your account":`Tu cuenta`,"Write with AI":`Escribir con IA`,"Suggested title":`Título sugerido`,"Suggested description":`Descripción sugerida`,"Suggested topic":`Tema sugerido`,"Use these details":`Usar estos datos`,"Learn something live.":`Aprende algo en directo.`,"Screen share":`Compartir pantalla`,"Upload and broadcast":`Subir y transmitir`,Help:`Ayuda`,"Reload Player":`Recargar reproductor`,"Copy Bundled CLI Path":`Copiar ruta de la CLI incluida`,"Developer tools":`Herramientas de desarrollo`,Undo:`Deshacer`,Redo:`Rehacer`,Cut:`Cortar`,Paste:`Pegar`,"Select all":`Seleccionar todo`,Status:`Estado`,"Activity log":`Registro de actividad`,Admin:`Administración`,"Playback controls":`Controles de reproducción`,"Tracks and folders":`Pistas y carpetas`,"Original-language captions.":`Subtítulos en el idioma original.`,"Skip to playback controls":`Ir a los controles de reproducción`,"Skip to playlist":`Ir a la lista de reproducción`,"Skip to transcript and translated audio":`Ir a la transcripción y al audio traducido`};export{t as default};
|