merge: fix/h-visibility

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 23:41:48 +08:00
commit 385933968f
20 files changed
+1045 -100

No files matched your search

@@ -120,6 +120,11 @@ export interface AddTorrentRequest {
category?: string;
tags?: string[];
paused?: boolean;
/**
* qB ≥ 4.5 的停止条件:MetadataReceived = 磁力拿到元数据后自动暂停(暂停添加的磁力不会去取元数据);
* 旧版本忽略该参数、照常开始下载
*/
stopCondition?: "MetadataReceived" | "FilesChecked";
rename?: string;
contentLayout?: "Original" | "Subfolder" | "NoSubfolder";
sequential?: boolean;
@@ -516,6 +521,7 @@ export class QbClient implements DownloaderClient {
const paused = req.paused ? "true" : "false";
form.append("paused", paused); // <= 4.x
form.append("stopped", paused); // >= 5.x
if (req.stopCondition) form.append("stopCondition", req.stopCondition);
if (req.rename) form.append("rename", req.rename);
form.append("contentLayout", req.contentLayout ?? "Original");
form.append("autoTMM", "false");