dsh-folia 4.26.0-pre.36 → 4.26.0-pre.37
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/lib/client.js +4 -1
- package/lib/routes/skins.js +3 -1
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -20335,6 +20335,9 @@ window.__ModuleLoader__.load({
|
|
|
20335
20335
|
});
|
|
20336
20336
|
}
|
|
20337
20337
|
if (kind === "remove") setNote({ ok: true, text: weT("已卸载:{name}", { name: label || "" }) });
|
|
20338
|
+
// 卸载成功后必须把这张卡片的失败/安装中状态清掉:
|
|
20339
|
+
// 真实事故 —— 卸完了,卡片还挂着上一轮「下载已完成但安装未落地 · 重试」,看着像没删掉。
|
|
20340
|
+
if (kind === "remove" && cardId) cards.end(cardId);
|
|
20338
20341
|
if (kind === "repair") {
|
|
20339
20342
|
setNote({
|
|
20340
20343
|
ok: true,
|
|
@@ -24835,7 +24838,7 @@ window.__ModuleLoader__.load({
|
|
|
24835
24838
|
*/
|
|
24836
24839
|
|
|
24837
24840
|
/** 每条壁纸最多自愈几次。超过就只提示 —— 防"每次 error 都重下"的死循环。 */
|
|
24838
|
-
const LF_HEAL_MAX_TRIES =
|
|
24841
|
+
const LF_HEAL_MAX_TRIES = 4;
|
|
24839
24842
|
/** 轮询救援产物/重下的间隔与上限(转码是几十秒级的,给 3 分钟)。 */
|
|
24840
24843
|
const LF_HEAL_POLL_MS = 1500;
|
|
24841
24844
|
const LF_HEAL_POLL_MAX_MS = 3 * 60 * 1000;
|
package/lib/routes/skins.js
CHANGED
|
@@ -374,7 +374,9 @@ async function fetchSiteSkins(force) { const now = Date.now();
|
|
|
374
374
|
// 4.23.7:站点给的内容哈希(**可能为空**)。有它 ⇒ 下载完要验内容,
|
|
375
375
|
// 不只是验长度/区间(见 lib/download-queue.js 的 assertContentHash)。
|
|
376
376
|
sha256: it && it.sha256 ? String(it.sha256) : '',
|
|
377
|
-
|
|
377
|
+
// 封面:站点上「缩略图」和「首帧海报」是两个字段。
|
|
378
|
+
// 皮肤包没有首帧,后台补的是 poster ⇒ 这里必须回退,否则卡片永远是空白。
|
|
379
|
+
thumbUrl: it.thumbUrl ? String(it.thumbUrl) : (it.posterUrl ? String(it.posterUrl) : ''),
|
|
378
380
|
// 站点现在把 tags 直接给**数组**(旧版给的是字符串化 JSON)。两种都收:
|
|
379
381
|
// 只认字符串会让「动态」这类标记静默丢失(实测:线上返回 ["皮肤","catppuccin",…])。
|
|
380
382
|
tags: (() => {
|