fix(download): 已入库任务不被 qB 中间态改回(H2)

importing / imported 只由整理侧推进:checkingResumeData / queuedDL / checkingUP / moving 等中间态只更新原始字段,不改回 queued / downloading / completed,completed_at 不重写;这期间也不做无进展判定。

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Cxwgnn2pbzQ7rXv3rq7fei
This commit is contained in:
rootandClaude Opus 5.5 committed 2026-10-03 21:20:08 +08:00
1 parent 3904abc472
commit 2159765949
3 files changed
+11 -3

No files matched your search

@@ -771,7 +771,8 @@ async function observeLocked(
let noProgressSince = row.no_progress_since;
let lastProgressAt = row.last_progress_at;
let stalledNow = false;
if (obs.status === "downloading") {
// importing / imported 期间(qB 重新校验 / 移动等中间态)不做无进展判定
if (obs.status === "downloading" && (merged.status === "downloading" || merged.status === "stalled")) {
if (downloaded > row.downloaded_bytes || !lastProgressAt) {
lastProgressAt = now;
noProgressSince = null;