nixamp 0.36.0 → 0.36.1
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/auto-stations.d.ts +1 -0
- package/dist/auto-stations.js +9 -1
- package/dist/enrich.d.ts +6 -0
- package/dist/enrich.js +16 -0
- package/dist/library.d.ts +2 -0
- package/dist/library.js +1 -0
- package/dist/server.js +10 -3
- package/dist/station-cli.js +28 -1
- package/dist/station-guide.d.ts +5 -1
- package/dist/station-guide.js +13 -2
- package/dist/station-usage.d.ts +1 -1
- package/dist/station-usage.js +2 -0
- package/package.json +1 -1
- package/src/auto-stations.ts +10 -1
- package/src/enrich.ts +15 -0
- package/src/library.ts +3 -0
- package/src/server.ts +10 -3
- package/src/station-cli.ts +25 -1
- package/src/station-guide.ts +8 -2
- package/src/station-usage.ts +2 -0
- package/web/dist/assets/{ar-Ck-FmDpQ.js → ar-D3Jhup9Q.js} +1 -1
- package/web/dist/assets/{cs-CPJY3K69.js → cs-dhVCsOeL.js} +1 -1
- package/web/dist/assets/{da-BnWtLL09.js → da-DwfG3DeD.js} +1 -1
- package/web/dist/assets/{de-CHevIt93.js → de-BtBDFO3Q.js} +1 -1
- package/web/dist/assets/{es-B6wpaUMv.js → es-Bf-T9sCu.js} +1 -1
- package/web/dist/assets/{fi-8fKiz2AA.js → fi-Dp5UyT8g.js} +1 -1
- package/web/dist/assets/{fr-0GgY52Sm.js → fr-D_usw45L.js} +1 -1
- package/web/dist/assets/{hi-BlsrUAw-.js → hi-DK-QMrPr.js} +1 -1
- package/web/dist/assets/{hls-3VKVEQE3-BZd3zjlr.js → hls-3VKVEQE3-DtHIQi0a.js} +1 -1
- package/web/dist/assets/{hu-D3i_6i5w.js → hu-DB1881vz.js} +1 -1
- package/web/dist/assets/{id-CLLAXbOP.js → id-DhzgwICo.js} +1 -1
- package/web/dist/assets/{it-BU13BsSn.js → it-C2_ScULL.js} +1 -1
- package/web/dist/assets/{main-C1ggd2H7.js → main-BYT6Kgoi.js} +2 -2
- package/web/dist/assets/{mpegts-LO6RVLD6-YBT-W6xc.js → mpegts-LO6RVLD6-CIaN13nn.js} +1 -1
- package/web/dist/assets/{mpegts-BaoQnMCf.js → mpegts-m4dTmfgt.js} +1 -1
- package/web/dist/assets/{nl-DEshyyt7.js → nl-BFAcO0yy.js} +1 -1
- package/web/dist/assets/{ru-D7sPOc6m.js → ru-Nbvhzngr.js} +1 -1
- package/web/dist/assets/{sv-sdrsKAiG.js → sv-DEZlQblR.js} +1 -1
- package/web/dist/assets/{uk-_lz6hkvo.js → uk-CUhXQE5f.js} +1 -1
- package/web/dist/assets/{vi-D81wl7uk.js → vi-0uN7oQuT.js} +1 -1
- package/web/dist/assets/{zh-BqMqEom6.js → zh-bsMdPHHB.js} +1 -1
- package/web/dist/index.html +1 -1
- package/web/dist/sw.js +22 -22
package/dist/auto-stations.d.ts
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
import type { LibraryIndex } from "./library-index.ts";
|
|
19
19
|
import type { StationRunner } from "./station-runner.ts";
|
|
20
20
|
import type { StationStore } from "./stations.ts";
|
|
21
|
+
export declare function adultTitle(title: string, genres?: string[]): boolean;
|
|
21
22
|
/** The genres a tag belongs to, recognisably named; [] when it is not music or not known. */
|
|
22
23
|
export declare function genreBuckets(raw: string): string[];
|
|
23
24
|
export interface AutoOptions {
|
package/dist/auto-stations.js
CHANGED
|
@@ -17,6 +17,11 @@ const RULES = [
|
|
|
17
17
|
[/pop/i, "Pop"],
|
|
18
18
|
];
|
|
19
19
|
const NOT_MUSIC = /lecture|interview|audiobook|podcast|speech|spoken|talk|course|sermon|lesson|comedy/i;
|
|
20
|
+
/** Never on a genre TV station, whatever nichedb calls it. */
|
|
21
|
+
const ADULT = /\b(xxx|porn|nsfw|onlyfans|brazzers|blacked|bangbros|milf|hentai|sex|erotic|adult)\b/i;
|
|
22
|
+
export function adultTitle(title, genres = []) {
|
|
23
|
+
return ADULT.test(title) || genres.some((one) => /adult|erotic|porn/i.test(one));
|
|
24
|
+
}
|
|
20
25
|
/** The genres a tag belongs to, recognisably named; [] when it is not music or not known. */
|
|
21
26
|
export function genreBuckets(raw) {
|
|
22
27
|
if (!raw || NOT_MUSIC.test(raw))
|
|
@@ -83,7 +88,10 @@ export async function syncAutoStations(deps, options = DEFAULT_AUTO) {
|
|
|
83
88
|
for (const item of all) {
|
|
84
89
|
if (!item.video || item.duration < 40 * 60)
|
|
85
90
|
continue;
|
|
86
|
-
const
|
|
91
|
+
const title = shown(item).title;
|
|
92
|
+
const genres = await deps.filmGenres(title).catch(() => []);
|
|
93
|
+
if (adultTitle(`${title} ${item.rel}`, genres))
|
|
94
|
+
continue;
|
|
87
95
|
for (const genre of genres.slice(0, 2)) {
|
|
88
96
|
const list = tv.get(genre) ?? [];
|
|
89
97
|
list.push(item);
|
package/dist/enrich.d.ts
CHANGED
|
@@ -109,6 +109,12 @@ export declare class Enricher {
|
|
|
109
109
|
* channel however its name reads. `auto` lets nichedb's parser decide from
|
|
110
110
|
* the name itself, which is right for a file.
|
|
111
111
|
*/
|
|
112
|
+
/**
|
|
113
|
+
* What is already known about a name, without asking anybody: for work
|
|
114
|
+
* that runs over a whole library and must not send nichedb a thousand
|
|
115
|
+
* questions at once.
|
|
116
|
+
*/
|
|
117
|
+
known(name: string): Enriched | null;
|
|
112
118
|
lookup(name: string, kind?: EnrichKind, year?: number | null): Promise<Enriched | null>;
|
|
113
119
|
private ask;
|
|
114
120
|
private get;
|
package/dist/enrich.js
CHANGED
|
@@ -169,6 +169,22 @@ export class Enricher {
|
|
|
169
169
|
* channel however its name reads. `auto` lets nichedb's parser decide from
|
|
170
170
|
* the name itself, which is right for a file.
|
|
171
171
|
*/
|
|
172
|
+
/**
|
|
173
|
+
* What is already known about a name, without asking anybody: for work
|
|
174
|
+
* that runs over a whole library and must not send nichedb a thousand
|
|
175
|
+
* questions at once.
|
|
176
|
+
*/
|
|
177
|
+
known(name) {
|
|
178
|
+
const asked = String(name ?? "").trim();
|
|
179
|
+
if (asked === "")
|
|
180
|
+
return null;
|
|
181
|
+
for (const kind of ["auto", "title"]) {
|
|
182
|
+
const had = this.cache.get(cacheKey(asked, kind, null));
|
|
183
|
+
if (had?.hit)
|
|
184
|
+
return had.hit;
|
|
185
|
+
}
|
|
186
|
+
return null;
|
|
187
|
+
}
|
|
172
188
|
async lookup(name, kind = "auto", year = null) {
|
|
173
189
|
const asked = String(name ?? "").trim();
|
|
174
190
|
if (asked === "")
|
package/dist/library.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ export interface Config {
|
|
|
5
5
|
publish?: boolean;
|
|
6
6
|
/** Auto stations: a station per genre, re-synced after every library scan. */
|
|
7
7
|
autoStations?: Record<string, unknown>;
|
|
8
|
+
/** Hosts (e.g. Moshpit names) whose front page is the public station guide. */
|
|
9
|
+
guideHosts?: string[];
|
|
8
10
|
}
|
|
9
11
|
export declare function configPath(): string;
|
|
10
12
|
export declare function readConfig(): Config;
|
package/dist/library.js
CHANGED
|
@@ -32,6 +32,7 @@ export function readConfig() {
|
|
|
32
32
|
...(typeof record["library"] === "string" ? { library: record["library"] } : {}),
|
|
33
33
|
...(typeof record["publish"] === "boolean" ? { publish: record["publish"] } : {}),
|
|
34
34
|
...(typeof record["autoStations"] === "object" && record["autoStations"] !== null ? { autoStations: record["autoStations"] } : {}),
|
|
35
|
+
...(Array.isArray(record["guideHosts"]) ? { guideHosts: record["guideHosts"].filter((one) => typeof one === "string") } : {}),
|
|
35
36
|
};
|
|
36
37
|
}
|
|
37
38
|
catch {
|
package/dist/server.js
CHANGED
|
@@ -6239,6 +6239,7 @@ export async function serve(argv, version = "0.1.0") {
|
|
|
6239
6239
|
};
|
|
6240
6240
|
};
|
|
6241
6241
|
let autoRunning = null;
|
|
6242
|
+
let autoLast = null;
|
|
6242
6243
|
const runAuto = (settings) => {
|
|
6243
6244
|
if (autoRunning)
|
|
6244
6245
|
return autoRunning;
|
|
@@ -6248,8 +6249,10 @@ export async function serve(argv, version = "0.1.0") {
|
|
|
6248
6249
|
runner: stationRunner,
|
|
6249
6250
|
owner: options.owner || "",
|
|
6250
6251
|
mayStart: () => stationLimits.runningStations === 0 || stationStore.list().filter((one) => one.desired === "running").length < stationLimits.runningStations,
|
|
6252
|
+
// Only what is already known: a sync over a whole library must not ask
|
|
6253
|
+
// nichedb a question per file (it queued minutes of queries there).
|
|
6251
6254
|
filmGenres: async (title) => {
|
|
6252
|
-
const hit =
|
|
6255
|
+
const hit = enricher.known(title);
|
|
6253
6256
|
const genres = hit?.data?.["genres"];
|
|
6254
6257
|
return Array.isArray(genres) ? genres.filter((one) => typeof one === "string") : [];
|
|
6255
6258
|
},
|
|
@@ -6257,6 +6260,7 @@ export async function serve(argv, version = "0.1.0") {
|
|
|
6257
6260
|
}, settings).then((report) => {
|
|
6258
6261
|
const made = report;
|
|
6259
6262
|
console.log(` auto stations: ${made.radio.length} radio, ${made.tv.length} TV.`);
|
|
6263
|
+
autoLast = { at: Date.now(), report };
|
|
6260
6264
|
return report;
|
|
6261
6265
|
}).finally(() => { autoRunning = null; });
|
|
6262
6266
|
return autoRunning;
|
|
@@ -6267,7 +6271,7 @@ export async function serve(argv, version = "0.1.0") {
|
|
|
6267
6271
|
void runAuto(settings);
|
|
6268
6272
|
};
|
|
6269
6273
|
const stationAuto = {
|
|
6270
|
-
setting: () => autoSetting(),
|
|
6274
|
+
setting: () => ({ ...(autoSetting() ?? { off: true }), running: autoRunning !== null, last: autoLast }),
|
|
6271
6275
|
sync: async (input) => {
|
|
6272
6276
|
if (input["off"] === true) {
|
|
6273
6277
|
writeConfig({ autoStations: undefined });
|
|
@@ -6279,7 +6283,10 @@ export async function serve(argv, version = "0.1.0") {
|
|
|
6279
6283
|
settings[name] = input[name];
|
|
6280
6284
|
}
|
|
6281
6285
|
writeConfig({ autoStations: settings });
|
|
6282
|
-
|
|
6286
|
+
// In the background: a big library takes a while, and an HTTP request
|
|
6287
|
+
// that waits for it times out before it is done.
|
|
6288
|
+
void runAuto(settings);
|
|
6289
|
+
return { started: true, settings };
|
|
6283
6290
|
},
|
|
6284
6291
|
};
|
|
6285
6292
|
const stations = { store: stationStore, runner: stationRunner, usage: stationUsage, limits: stationLimits, auto: stationAuto };
|
package/dist/station-cli.js
CHANGED
|
@@ -181,6 +181,19 @@ export async function station(argv) {
|
|
|
181
181
|
return [`page ${links["page"]}`, `stream ${links["stream"]}`, `m3u ${links["m3u"]}`].join("\n");
|
|
182
182
|
});
|
|
183
183
|
}
|
|
184
|
+
case "guide-host": {
|
|
185
|
+
// This machine's own setting, read by the daemon on every request.
|
|
186
|
+
const { readConfig, writeConfig } = await import("./library.js");
|
|
187
|
+
const host = (id ?? "").trim().toLowerCase();
|
|
188
|
+
const hosts = new Set(readConfig().guideHosts ?? []);
|
|
189
|
+
if (argv.includes("--remove"))
|
|
190
|
+
hosts.delete(host);
|
|
191
|
+
else if (host)
|
|
192
|
+
hosts.add(host);
|
|
193
|
+
writeConfig({ guideHosts: [...hosts] });
|
|
194
|
+
console.log(hosts.size ? `The guide is the front page for: ${[...hosts].join(", ")}` : "No host shows the guide as its front page (it is still at /guide).");
|
|
195
|
+
return 0;
|
|
196
|
+
}
|
|
184
197
|
case "auto": {
|
|
185
198
|
const body = argv.includes("--off") ? { off: true } : {
|
|
186
199
|
...(argv.includes("--no-video") ? { video: false } : {}),
|
|
@@ -190,7 +203,21 @@ export async function station(argv) {
|
|
|
190
203
|
...(flag(argv, "--tv") ? { maxVideoRunning: Number(flag(argv, "--tv")) } : {}),
|
|
191
204
|
...(flag(argv, "--breaks") ? { breaksEvery: Number(flag(argv, "--breaks")) } : {}),
|
|
192
205
|
};
|
|
193
|
-
|
|
206
|
+
const started = await call("POST", "/api/v1/stations/auto", body);
|
|
207
|
+
let answer = started;
|
|
208
|
+
if (started.status < 400 && !body["off"]) {
|
|
209
|
+
// Started in the background; wait for it to say what it made.
|
|
210
|
+
for (let tries = 0; tries < 600; tries++) {
|
|
211
|
+
await new Promise((next) => setTimeout(next, 1000));
|
|
212
|
+
const state = await call("GET", "/api/v1/stations/auto");
|
|
213
|
+
const setting = state.body["setting"];
|
|
214
|
+
if (!setting?.running && setting?.last?.report) {
|
|
215
|
+
answer = { status: 200, body: { report: setting.last.report } };
|
|
216
|
+
break;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
return show(answer, (answer) => {
|
|
194
221
|
const report = answer["report"];
|
|
195
222
|
if (report.off)
|
|
196
223
|
return "Auto stations are off. The stations already made stay as they are.";
|
package/dist/station-guide.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export declare const GUIDE_HTML = "<!doctype html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>Live \u00B7 stations</title>\n<meta name=\"description\" content=\"Radio and TV stations, live now.\">\n<link rel=\"icon\" href=\"data:,\">\n<style>\n:root{--bg:#f6f5f2;--fg:#17171a;--muted:#5d5d66;--card:#fff;--line:#dedcd6;--accent:#1f6feb;--live:#0b7a3b}\n@media (prefers-color-scheme:dark){:root{--bg:#121214;--fg:#ececf1;--muted:#a4a4b0;--card:#1c1c20;--line:#2c2c33;--accent:#6aa7ff;--live:#3fbf7f}}\n*{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--fg);font:16px/1.5 system-ui,-apple-system,\"Segoe UI\",sans-serif}\nmain{max-width:880px;margin:0 auto;padding:40px 16px}\nh1{margin:0 0 4px;font-size:1.8rem}p.lead{color:var(--muted);margin:0 0 24px}\nh2{font-size:1rem;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:28px 0 10px}\n.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px}\na.station{display:block;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:16px;color:inherit;text-decoration:none}\na.station:hover,a.station:focus-visible{border-color:var(--accent);outline:none}\n.name{font-weight:700;font-size:1.05rem}.now{color:var(--muted);font-size:.9rem;margin-top:6px;min-height:1.4em}\n.live{color:var(--live);font-size:.8rem;font-weight:700}.empty{color:var(--muted)}\nfooter{margin-top:40px;color:var(--muted);font-size:.85rem}footer a{color:inherit}\n</style>\n</head>\n<body>\n<main>\n <h1>Live</h1>\n <p class=\"lead\">Radio and TV, on the air now. Pick one and press play.</p>\n <h2 id=\"radio-title\" hidden>Radio</h2>\n <div id=\"radio\" class=\"grid\" aria-live=\"polite\"></div>\n <h2 id=\"tv-title\" hidden>TV</h2>\n <div id=\"tv\" class=\"grid\" aria-live=\"polite\"></div>\n <p id=\"empty\" class=\"empty\">Nothing is on the air here yet.</p>\n <footer>Played by <a href=\"https://nixamp.com\">nixamp</a>, on the Moshpit.</footer>\n</main>\n<script>\n(async () => {\n const el = (tag, cls, text) => { const n = document.createElement(tag); if (cls) n.className = cls; if (text) n.textContent = text; return n; };\n const draw = (stations) => {\n for (const [kind, box] of [[\"audio\", \"#radio\"], [\"video\", \"#tv\"]]) {\n const grid = document.querySelector(box);\n grid.replaceChildren();\n const list = stations.filter((s) => s.kind === kind);\n document.querySelector(box + \"-title\").hidden = list.length === 0;\n for (const s of list) {\n const a = el(\"a\", \"station\");\n a.href = s.page;\n a.append(el(\"div\", \"live\", s.state === \"live\" ? \"\u25CF LIVE\" : \"off the air\"), el(\"div\", \"name\", s.name),\n el(\"div\", \"now\", s.nowPlaying ? [s.nowPlaying.title, s.nowPlaying.artist].filter(Boolean).join(\" \u2014 \") : \"\"));\n grid.append(a);\n }\n }\n document.querySelector(\"#empty\").hidden = stations.length > 0;\n };\n const load = async () => {\n try {\n const r = await fetch(\"/api/v1/stations/guide\", { cache: \"no-store\" });\n if (r.ok) draw((await r.json()).stations);\n } catch {}\n };\n await load();\n setInterval(load, 15000);\n})();\n</script>\n</body>\n</html>\n";
|
|
2
2
|
export declare const GUIDE_CSP: string;
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* The hosts whose front page is the guide: `guideHosts` in config.json
|
|
5
|
+
* (`nixamp station guide-host NAME`, which survives restarts and updates),
|
|
6
|
+
* plus NIXAMP_GUIDE_HOSTS, comma-separated.
|
|
7
|
+
*/
|
|
4
8
|
export declare function guideHosts(env?: Record<string, string | undefined>): Set<string>;
|
package/dist/station-guide.js
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
* /api/v1/stations/guide for the list and writes it in as text.
|
|
8
8
|
*/
|
|
9
9
|
import { createHash } from "node:crypto";
|
|
10
|
+
import { readConfig } from "./library.js";
|
|
10
11
|
const STYLE = `
|
|
11
12
|
:root{--bg:#f6f5f2;--fg:#17171a;--muted:#5d5d66;--card:#fff;--line:#dedcd6;--accent:#1f6feb;--live:#0b7a3b}
|
|
12
13
|
@media (prefers-color-scheme:dark){:root{--bg:#121214;--fg:#ececf1;--muted:#a4a4b0;--card:#1c1c20;--line:#2c2c33;--accent:#6aa7ff;--live:#3fbf7f}}
|
|
@@ -80,7 +81,17 @@ export const GUIDE_CSP = [
|
|
|
80
81
|
"default-src 'none'", `script-src ${hash(SCRIPT)}`, `style-src ${hash(STYLE)}`, "connect-src 'self'",
|
|
81
82
|
"img-src 'self' data:", "base-uri 'none'", "form-action 'none'", "frame-ancestors 'none'",
|
|
82
83
|
].join("; ");
|
|
83
|
-
/**
|
|
84
|
+
/**
|
|
85
|
+
* The hosts whose front page is the guide: `guideHosts` in config.json
|
|
86
|
+
* (`nixamp station guide-host NAME`, which survives restarts and updates),
|
|
87
|
+
* plus NIXAMP_GUIDE_HOSTS, comma-separated.
|
|
88
|
+
*/
|
|
84
89
|
export function guideHosts(env = process.env) {
|
|
85
|
-
|
|
90
|
+
const saved = (() => { try {
|
|
91
|
+
return readConfig().guideHosts ?? [];
|
|
92
|
+
}
|
|
93
|
+
catch {
|
|
94
|
+
return [];
|
|
95
|
+
} })();
|
|
96
|
+
return new Set([...(env["NIXAMP_GUIDE_HOSTS"] ?? "").split(","), ...saved].map((one) => one.trim().toLowerCase()).filter(Boolean));
|
|
86
97
|
}
|
package/dist/station-usage.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** `nixamp station` usage, apart so `nixamp help station` does not load the client. */
|
|
2
|
-
export declare const USAGE = "nixamp station \u2014 make a collection into a station\n\n nixamp station list\n nixamp station create --name NAME (--folder PATH | --playlist ID | --items 0,1,2) [--shuffle] [--no-repeat] [--bitrate 128]\n nixamp station show ID\n nixamp station status ID\n nixamp station start ID\n nixamp station stop ID\n nixamp station skip ID\n nixamp station retry ID try every left-out file again\n nixamp station publish ID --basis owned|permission|licensed|public-domain [--note TEXT] [--unlisted] [--no-list]\n nixamp station unpublish ID [--private]\n nixamp station link ID [--rotate]\n nixamp station delete ID\n nixamp station auto [--no-video] [--min 10] [--films 3] [--tv 2] [--breaks 600] [--no-start]\n a station per genre, kept in step with the library (--off stops it)\n\n --json machine-readable output\n --url, --key another server, as with `nixamp admin`\n\nA new station is private and stopped. Starting it does not publish it.";
|
|
2
|
+
export declare const USAGE = "nixamp station \u2014 make a collection into a station\n\n nixamp station list\n nixamp station create --name NAME (--folder PATH | --playlist ID | --items 0,1,2) [--shuffle] [--no-repeat] [--bitrate 128]\n nixamp station show ID\n nixamp station status ID\n nixamp station start ID\n nixamp station stop ID\n nixamp station skip ID\n nixamp station retry ID try every left-out file again\n nixamp station publish ID --basis owned|permission|licensed|public-domain [--note TEXT] [--unlisted] [--no-list]\n nixamp station unpublish ID [--private]\n nixamp station link ID [--rotate]\n nixamp station delete ID\n nixamp station guide-host NAME [--remove]\n NAME's front page is the public station guide (e.g. a Moshpit name)\n nixamp station auto [--no-video] [--min 10] [--films 3] [--tv 2] [--breaks 600] [--no-start]\n a station per genre, kept in step with the library (--off stops it)\n\n --json machine-readable output\n --url, --key another server, as with `nixamp admin`\n\nA new station is private and stopped. Starting it does not publish it.";
|
package/dist/station-usage.js
CHANGED
|
@@ -13,6 +13,8 @@ export const USAGE = `nixamp station — make a collection into a station
|
|
|
13
13
|
nixamp station unpublish ID [--private]
|
|
14
14
|
nixamp station link ID [--rotate]
|
|
15
15
|
nixamp station delete ID
|
|
16
|
+
nixamp station guide-host NAME [--remove]
|
|
17
|
+
NAME's front page is the public station guide (e.g. a Moshpit name)
|
|
16
18
|
nixamp station auto [--no-video] [--min 10] [--films 3] [--tv 2] [--breaks 600] [--no-start]
|
|
17
19
|
a station per genre, kept in step with the library (--off stops it)
|
|
18
20
|
|
package/package.json
CHANGED
package/src/auto-stations.ts
CHANGED
|
@@ -40,6 +40,13 @@ const RULES: Array<[RegExp, string]> = [
|
|
|
40
40
|
|
|
41
41
|
const NOT_MUSIC = /lecture|interview|audiobook|podcast|speech|spoken|talk|course|sermon|lesson|comedy/i;
|
|
42
42
|
|
|
43
|
+
/** Never on a genre TV station, whatever nichedb calls it. */
|
|
44
|
+
const ADULT = /\b(xxx|porn|nsfw|onlyfans|brazzers|blacked|bangbros|milf|hentai|sex|erotic|adult)\b/i;
|
|
45
|
+
|
|
46
|
+
export function adultTitle(title: string, genres: string[] = []): boolean {
|
|
47
|
+
return ADULT.test(title) || genres.some((one) => /adult|erotic|porn/i.test(one));
|
|
48
|
+
}
|
|
49
|
+
|
|
43
50
|
/** The genres a tag belongs to, recognisably named; [] when it is not music or not known. */
|
|
44
51
|
export function genreBuckets(raw: string): string[] {
|
|
45
52
|
if (!raw || NOT_MUSIC.test(raw)) return [];
|
|
@@ -146,7 +153,9 @@ export async function syncAutoStations(deps: AutoDeps, options: AutoOptions = DE
|
|
|
146
153
|
const tv = new Map<string, LibraryItem[]>();
|
|
147
154
|
for (const item of all) {
|
|
148
155
|
if (!item.video || item.duration < 40 * 60) continue;
|
|
149
|
-
const
|
|
156
|
+
const title = shown(item).title;
|
|
157
|
+
const genres = await deps.filmGenres(title).catch(() => []);
|
|
158
|
+
if (adultTitle(`${title} ${item.rel}`, genres)) continue;
|
|
150
159
|
for (const genre of genres.slice(0, 2)) {
|
|
151
160
|
const list = tv.get(genre) ?? [];
|
|
152
161
|
list.push(item);
|
package/src/enrich.ts
CHANGED
|
@@ -221,6 +221,21 @@ export class Enricher {
|
|
|
221
221
|
* channel however its name reads. `auto` lets nichedb's parser decide from
|
|
222
222
|
* the name itself, which is right for a file.
|
|
223
223
|
*/
|
|
224
|
+
/**
|
|
225
|
+
* What is already known about a name, without asking anybody: for work
|
|
226
|
+
* that runs over a whole library and must not send nichedb a thousand
|
|
227
|
+
* questions at once.
|
|
228
|
+
*/
|
|
229
|
+
known(name: string): Enriched | null {
|
|
230
|
+
const asked = String(name ?? "").trim();
|
|
231
|
+
if (asked === "") return null;
|
|
232
|
+
for (const kind of ["auto", "title"] as EnrichKind[]) {
|
|
233
|
+
const had = this.cache.get(cacheKey(asked, kind, null));
|
|
234
|
+
if (had?.hit) return had.hit;
|
|
235
|
+
}
|
|
236
|
+
return null;
|
|
237
|
+
}
|
|
238
|
+
|
|
224
239
|
async lookup(name: string, kind: EnrichKind = "auto", year: number | null = null): Promise<Enriched | null> {
|
|
225
240
|
const asked = String(name ?? "").trim();
|
|
226
241
|
if (asked === "") return null;
|
package/src/library.ts
CHANGED
|
@@ -27,6 +27,8 @@ export interface Config {
|
|
|
27
27
|
publish?: boolean;
|
|
28
28
|
/** Auto stations: a station per genre, re-synced after every library scan. */
|
|
29
29
|
autoStations?: Record<string, unknown>;
|
|
30
|
+
/** Hosts (e.g. Moshpit names) whose front page is the public station guide. */
|
|
31
|
+
guideHosts?: string[];
|
|
30
32
|
}
|
|
31
33
|
|
|
32
34
|
export function configPath(): string {
|
|
@@ -42,6 +44,7 @@ export function readConfig(): Config {
|
|
|
42
44
|
...(typeof record["library"] === "string" ? { library: record["library"] } : {}),
|
|
43
45
|
...(typeof record["publish"] === "boolean" ? { publish: record["publish"] } : {}),
|
|
44
46
|
...(typeof record["autoStations"] === "object" && record["autoStations"] !== null ? { autoStations: record["autoStations"] as Record<string, unknown> } : {}),
|
|
47
|
+
...(Array.isArray(record["guideHosts"]) ? { guideHosts: (record["guideHosts"] as unknown[]).filter((one): one is string => typeof one === "string") } : {}),
|
|
45
48
|
};
|
|
46
49
|
} catch {
|
|
47
50
|
return {};
|
package/src/server.ts
CHANGED
|
@@ -6730,6 +6730,7 @@ export async function serve(argv: string[], version = "0.1.0"): Promise<void> {
|
|
|
6730
6730
|
};
|
|
6731
6731
|
};
|
|
6732
6732
|
let autoRunning: Promise<unknown> | null = null;
|
|
6733
|
+
let autoLast: { at: number; report: unknown } | null = null;
|
|
6733
6734
|
const runAuto = (settings: AutoOptions): Promise<unknown> => {
|
|
6734
6735
|
if (autoRunning) return autoRunning;
|
|
6735
6736
|
autoRunning = syncAutoStations({
|
|
@@ -6738,8 +6739,10 @@ export async function serve(argv: string[], version = "0.1.0"): Promise<void> {
|
|
|
6738
6739
|
runner: stationRunner!,
|
|
6739
6740
|
owner: options.owner || "",
|
|
6740
6741
|
mayStart: () => stationLimits.runningStations === 0 || stationStore.list().filter((one) => one.desired === "running").length < stationLimits.runningStations,
|
|
6742
|
+
// Only what is already known: a sync over a whole library must not ask
|
|
6743
|
+
// nichedb a question per file (it queued minutes of queries there).
|
|
6741
6744
|
filmGenres: async (title) => {
|
|
6742
|
-
const hit =
|
|
6745
|
+
const hit = enricher.known(title);
|
|
6743
6746
|
const genres = hit?.data?.["genres"];
|
|
6744
6747
|
return Array.isArray(genres) ? genres.filter((one): one is string => typeof one === "string") : [];
|
|
6745
6748
|
},
|
|
@@ -6747,6 +6750,7 @@ export async function serve(argv: string[], version = "0.1.0"): Promise<void> {
|
|
|
6747
6750
|
}, settings).then((report) => {
|
|
6748
6751
|
const made = report as { radio: unknown[]; tv: unknown[] };
|
|
6749
6752
|
console.log(` auto stations: ${made.radio.length} radio, ${made.tv.length} TV.`);
|
|
6753
|
+
autoLast = { at: Date.now(), report };
|
|
6750
6754
|
return report;
|
|
6751
6755
|
}).finally(() => { autoRunning = null; });
|
|
6752
6756
|
return autoRunning;
|
|
@@ -6756,7 +6760,7 @@ export async function serve(argv: string[], version = "0.1.0"): Promise<void> {
|
|
|
6756
6760
|
if (settings) void runAuto(settings);
|
|
6757
6761
|
};
|
|
6758
6762
|
const stationAuto = {
|
|
6759
|
-
setting: () => autoSetting(),
|
|
6763
|
+
setting: () => ({ ...(autoSetting() ?? { off: true }), running: autoRunning !== null, last: autoLast }),
|
|
6760
6764
|
sync: async (input: Record<string, unknown>) => {
|
|
6761
6765
|
if (input["off"] === true) {
|
|
6762
6766
|
writeConfig({ autoStations: undefined });
|
|
@@ -6767,7 +6771,10 @@ export async function serve(argv: string[], version = "0.1.0"): Promise<void> {
|
|
|
6767
6771
|
if (input[name] !== undefined) (settings as unknown as Record<string, unknown>)[name] = input[name];
|
|
6768
6772
|
}
|
|
6769
6773
|
writeConfig({ autoStations: settings as unknown as Record<string, unknown> });
|
|
6770
|
-
|
|
6774
|
+
// In the background: a big library takes a while, and an HTTP request
|
|
6775
|
+
// that waits for it times out before it is done.
|
|
6776
|
+
void runAuto(settings);
|
|
6777
|
+
return { started: true, settings };
|
|
6771
6778
|
},
|
|
6772
6779
|
};
|
|
6773
6780
|
const stations = { store: stationStore, runner: stationRunner, usage: stationUsage, limits: stationLimits, auto: stationAuto };
|
package/src/station-cli.ts
CHANGED
|
@@ -177,6 +177,16 @@ export async function station(argv: string[]): Promise<number> {
|
|
|
177
177
|
return [`page ${links["page"]}`, `stream ${links["stream"]}`, `m3u ${links["m3u"]}`].join("\n");
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
|
+
case "guide-host": {
|
|
181
|
+
// This machine's own setting, read by the daemon on every request.
|
|
182
|
+
const { readConfig, writeConfig } = await import("./library.ts");
|
|
183
|
+
const host = (id ?? "").trim().toLowerCase();
|
|
184
|
+
const hosts = new Set(readConfig().guideHosts ?? []);
|
|
185
|
+
if (argv.includes("--remove")) hosts.delete(host); else if (host) hosts.add(host);
|
|
186
|
+
writeConfig({ guideHosts: [...hosts] });
|
|
187
|
+
console.log(hosts.size ? `The guide is the front page for: ${[...hosts].join(", ")}` : "No host shows the guide as its front page (it is still at /guide).");
|
|
188
|
+
return 0;
|
|
189
|
+
}
|
|
180
190
|
case "auto": {
|
|
181
191
|
const body: Record<string, unknown> = argv.includes("--off") ? { off: true } : {
|
|
182
192
|
...(argv.includes("--no-video") ? { video: false } : {}),
|
|
@@ -186,7 +196,21 @@ export async function station(argv: string[]): Promise<number> {
|
|
|
186
196
|
...(flag(argv, "--tv") ? { maxVideoRunning: Number(flag(argv, "--tv")) } : {}),
|
|
187
197
|
...(flag(argv, "--breaks") ? { breaksEvery: Number(flag(argv, "--breaks")) } : {}),
|
|
188
198
|
};
|
|
189
|
-
|
|
199
|
+
const started = await call("POST", "/api/v1/stations/auto", body);
|
|
200
|
+
let answer = started;
|
|
201
|
+
if (started.status < 400 && !body["off"]) {
|
|
202
|
+
// Started in the background; wait for it to say what it made.
|
|
203
|
+
for (let tries = 0; tries < 600; tries++) {
|
|
204
|
+
await new Promise((next) => setTimeout(next, 1000));
|
|
205
|
+
const state = await call("GET", "/api/v1/stations/auto");
|
|
206
|
+
const setting = state.body["setting"] as { running?: boolean; last?: { report?: unknown } } | undefined;
|
|
207
|
+
if (!setting?.running && setting?.last?.report) {
|
|
208
|
+
answer = { status: 200, body: { report: setting.last.report } };
|
|
209
|
+
break;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
return show(answer, (answer) => {
|
|
190
214
|
const report = answer["report"] as { off?: boolean; radio?: Array<Record<string, unknown>>; tv?: Array<Record<string, unknown>>; skipped?: string[] };
|
|
191
215
|
if (report.off) return "Auto stations are off. The stations already made stay as they are.";
|
|
192
216
|
const line = (one: Record<string, unknown>, unit: string) => ` ${String(one["genre"]).padEnd(16)} ${String(one["files"] ?? one["films"]).padStart(5)} ${unit} ${one["running"] ? "on air" : "stopped"}${one["made"] ? " (new)" : ""} [${String(one["id"])}]`;
|
package/src/station-guide.ts
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
* /api/v1/stations/guide for the list and writes it in as text.
|
|
8
8
|
*/
|
|
9
9
|
import { createHash } from "node:crypto";
|
|
10
|
+
import { readConfig } from "./library.ts";
|
|
10
11
|
|
|
11
12
|
const STYLE = `
|
|
12
13
|
:root{--bg:#f6f5f2;--fg:#17171a;--muted:#5d5d66;--card:#fff;--line:#dedcd6;--accent:#1f6feb;--live:#0b7a3b}
|
|
@@ -86,7 +87,12 @@ export const GUIDE_CSP = [
|
|
|
86
87
|
"img-src 'self' data:", "base-uri 'none'", "form-action 'none'", "frame-ancestors 'none'",
|
|
87
88
|
].join("; ");
|
|
88
89
|
|
|
89
|
-
/**
|
|
90
|
+
/**
|
|
91
|
+
* The hosts whose front page is the guide: `guideHosts` in config.json
|
|
92
|
+
* (`nixamp station guide-host NAME`, which survives restarts and updates),
|
|
93
|
+
* plus NIXAMP_GUIDE_HOSTS, comma-separated.
|
|
94
|
+
*/
|
|
90
95
|
export function guideHosts(env: Record<string, string | undefined> = process.env): Set<string> {
|
|
91
|
-
|
|
96
|
+
const saved = (() => { try { return readConfig().guideHosts ?? []; } catch { return []; } })();
|
|
97
|
+
return new Set([...(env["NIXAMP_GUIDE_HOSTS"] ?? "").split(","), ...saved].map((one) => one.trim().toLowerCase()).filter(Boolean));
|
|
92
98
|
}
|
package/src/station-usage.ts
CHANGED
|
@@ -13,6 +13,8 @@ export const USAGE = `nixamp station — make a collection into a station
|
|
|
13
13
|
nixamp station unpublish ID [--private]
|
|
14
14
|
nixamp station link ID [--rotate]
|
|
15
15
|
nixamp station delete ID
|
|
16
|
+
nixamp station guide-host NAME [--remove]
|
|
17
|
+
NAME's front page is the public station guide (e.g. a Moshpit name)
|
|
16
18
|
nixamp station auto [--no-video] [--min 10] [--films 3] [--tv 2] [--breaks 600] [--no-start]
|
|
17
19
|
a station per genre, kept in step with the library (--off stops it)
|
|
18
20
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"./main-
|
|
1
|
+
import{n as e}from"./main-BYT6Kgoi.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{n as e}from"./main-
|
|
1
|
+
import{n as e}from"./main-BYT6Kgoi.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{n as e}from"./main-
|
|
1
|
+
import{n as e}from"./main-BYT6Kgoi.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{n as e}from"./main-
|
|
1
|
+
import{n as e}from"./main-BYT6Kgoi.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};
|