fix 删种

This commit is contained in:
thsrite 2023-10-13 11:45:18 +08:00
parent c36c94971e
commit 4eebaa5d75

View File

@ -1013,8 +1013,7 @@ class MediaSyncDel(_PluginBase):
if not isinstance(torrents, list):
torrents = [torrents]
# 删除辅种历史中与本下载器相同的辅种记录
if str(downloader) == str(download):
# 删除辅种历史
for torrent in torrents:
handle_cnt += 1
if str(download) == "qbittorrent":
@ -1043,10 +1042,13 @@ class MediaSyncDel(_PluginBase):
break
# 更新辅种历史
if seed_history:
self.save_data(key=history_key,
value=seed_history,
plugin_id=plugin_id)
else:
self.del_data(key=history_key,
plugin_id=plugin_id)
return handle_cnt
@staticmethod