feat(download): 下载器可设「H&R 未知也可清理」(M2)
下载器策略加 hnrUnknownCleanable(缺省关,保持现状):保种天数到期、站点 H&R 要求未知 (M-Team、接管任务、站点没配 H&R)的任务视为可清理;H&R 明确未满足的不受影响。 空间不足事项里写明有多少任务因 H&R 未知没清理、可在哪里放行。 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Cxwgnn2pbzQ7rXv3rq7fei
This commit is contained in:
1 parent
3d3a4cefc6
commit
07d5f42143
3 files changed
+30
-8
No files matched your search
@@ -68,6 +68,8 @@ export const DownloaderPolicy = z
|
||||
resumePercent: z.number().min(1).max(100).optional(),
|
||||
cleanupTargetPercent: z.number().min(1).max(100).optional(),
|
||||
seedRetentionDays: z.number().int().min(0).max(365).optional(),
|
||||
/** 保种天数到期、但站点 H&R 要求未知(M-Team、接管任务、站点没配 H&R)时也允许清理;缺省不允许 */
|
||||
hnrUnknownCleanable: z.boolean().optional(),
|
||||
})
|
||||
.strict();
|
||||
export type DownloaderPolicy = z.infer<typeof DownloaderPolicy>;
|
||||
|
||||
Reference in new issue
Block a user