Skip to content

Commit

Permalink
fix: 自动删种状态错误
Browse files Browse the repository at this point in the history
  • Loading branch information
linyuan0213 committed Dec 17, 2024
1 parent c626dee commit 1a33fed
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 28 deletions.
43 changes: 16 additions & 27 deletions app/conf/moduleconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,47 +514,36 @@ class ModuleConf(object):
}
}
}

# ('Downloading', 'Uploading', 'Checking', 'Queued', 'Paused', 'Stopped', 'Pending', 'Error', 'Unknown'))
# 自动删种配置
TORRENTREMOVER_DICT = {
"qbittorrent": {
"name": "Qbittorrent",
"img_url": "../static/img/downloader/qbittorrent.png",
"downloader_type": DownloaderType.QB,
"torrent_state": {
"downloading": "正在下载_传输数据",
"stalledDL": "正在下载_未建立连接",
"uploading": "正在上传_传输数据",
"stalledUP": "正在上传_未建立连接",
"error": "暂停_发生错误",
"pausedDL": "暂停_下载未完成",
"pausedUP": "暂停_下载完成",
"missingFiles": "暂停_文件丢失",
"checkingDL": "检查中_下载未完成",
"checkingUP": "检查中_下载完成",
"checkingResumeData": "检查中_启动时恢复数据",
"forcedDL": "强制下载_忽略队列",
"queuedDL": "等待下载_排队",
"forcedUP": "强制上传_忽略队列",
"queuedUP": "等待上传_排队",
"allocating": "分配磁盘空间",
"metaDL": "获取元数据",
"moving": "移动文件",
"unknown": "未知状态",
"Downloading": "正在下载",
"Pending": "等待下载",
"Uploading": "正在上传",
"Error": "发生错误",
"Paused": "暂停",
"Checking": "检查中",
"Queued": "排队",
"Unknown": "未知状态",
}
},
"transmission": {
"name": "Transmission",
"img_url": "../static/img/downloader/transmission.png",
"downloader_type": DownloaderType.TR,
"torrent_state": {
"downloading": "正在下载",
"seeding": "正在上传",
"download_pending": "等待下载_排队",
"seed_pending": "等待上传_排队",
"checking": "正在检查",
"check_pending": "等待检查_排队",
"stopped": "暂停",
"Uploading": "正在上传",
"Downloading": "正在下载",
"Pending": "等待",
"Checking": "正在检查",
"Queued": "排队",
"Stopped": "暂停",
"Unknown": "未知状态"
}
}
}
Expand Down
1 change: 0 additions & 1 deletion app/downloader/client/qbittorrent.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,6 @@ def get_remove_torrents(self, config=None):
break
if not tacker_key_flag:
continue
#TODO
if qb_state and torrent.status.name not in qb_state:
continue
if qb_category and torrent.category not in qb_category:
Expand Down

0 comments on commit 1a33fed

Please sign in to comment.