@soffits/dsh-media-hub 0.11.0 → 0.11.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/CHANGELOG.md +4 -0
- package/dist/index.js +1 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.11.1
|
|
4
|
+
|
|
5
|
+
- The page's words come from the language files each time it asks, not from a copy made when the plugin started. An update that only changed words (0.11.0's type badges) showed raw keys until DSH restarted.
|
|
6
|
+
|
|
3
7
|
## 0.11.0
|
|
4
8
|
|
|
5
9
|
- Library is one list. The shows and the books you downloaded (My books) used to sit in two sections; they are now cards in the same list, each marked Show, Video, Audio or Book, and every card has a background. The top line counts both: the library's size, how much of the books' room you used, and what is free.
|
package/dist/index.js
CHANGED
|
@@ -12255,7 +12255,6 @@ async function readJson(req) {
|
|
|
12255
12255
|
var STATUS = Object.freeze({ points: 402, invalid: 400, empty: 400, not_found: 404, unsupported: 501, outside: 403, in_use: 409, exists: 409, no_space: 507, source_failed: 424, unavailable: 503 });
|
|
12256
12256
|
var errorBody = (error) => ({ error: { code: error?.code ?? "error", ...error?.reason ? { reason: error.reason } : {}, ...error?.points ? { points: error.points } : {}, message: error?.message ?? String(error) } });
|
|
12257
12257
|
function createHandler({ connection, service, settings = () => ({ label: "", presence: {} }), localeDir = LOCALE_DIR, logger }) {
|
|
12258
|
-
let locales;
|
|
12259
12258
|
return async (req, res) => {
|
|
12260
12259
|
const admitted = admitOwner(connection, req);
|
|
12261
12260
|
if (!admitted.ok) return sendText(res, admitted.status, admitted.status === 401 ? "Sign in to DSH first." : "Forbidden.");
|
|
@@ -12324,7 +12323,7 @@ function createHandler({ connection, service, settings = () => ({ label: "", pre
|
|
|
12324
12323
|
if (route === "POST library/seen") return sendJson(res, 200, hub.dismissNews((await readJson(req)).path));
|
|
12325
12324
|
if (route === "POST library/cancel") return sendJson(res, 200, await hub.cancelDownload((await readJson(req)).path));
|
|
12326
12325
|
if (route === "GET settings") return sendJson(res, 200, settings());
|
|
12327
|
-
if (route === "GET locales") return sendJson(res, 200, await
|
|
12326
|
+
if (route === "GET locales") return sendJson(res, 200, await readLocales(localeDir, logger));
|
|
12328
12327
|
if (route === "GET sources") return sendJson(res, 200, { sources: await hub.sources() });
|
|
12329
12328
|
if (route === "GET trending") return sendJson(res, 200, await hub.trending(query("source"), query("kind")));
|
|
12330
12329
|
if (route === "GET search") return sendJson(res, 200, await hub.search(query("source"), query("q"), query("kind") || void 0, Math.max(0, Number.parseInt(query("offset"), 10) || 0), parseFilters(query)));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soffits/dsh-media-hub",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.1",
|
|
4
4
|
"description": "A media hub for DeepSeek Harness: search shows, novels, ebooks and papers across sources, watch together in sync, and download books in the format you want onto your own shelf.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|