fix 删种
This commit is contained in:
parent
c36c94971e
commit
4eebaa5d75
@ -1013,8 +1013,7 @@ class MediaSyncDel(_PluginBase):
|
|||||||
if not isinstance(torrents, list):
|
if not isinstance(torrents, list):
|
||||||
torrents = [torrents]
|
torrents = [torrents]
|
||||||
|
|
||||||
# 删除辅种历史中与本下载器相同的辅种记录
|
# 删除辅种历史
|
||||||
if str(downloader) == str(download):
|
|
||||||
for torrent in torrents:
|
for torrent in torrents:
|
||||||
handle_cnt += 1
|
handle_cnt += 1
|
||||||
if str(download) == "qbittorrent":
|
if str(download) == "qbittorrent":
|
||||||
@ -1043,10 +1042,13 @@ class MediaSyncDel(_PluginBase):
|
|||||||
break
|
break
|
||||||
|
|
||||||
# 更新辅种历史
|
# 更新辅种历史
|
||||||
|
if seed_history:
|
||||||
self.save_data(key=history_key,
|
self.save_data(key=history_key,
|
||||||
value=seed_history,
|
value=seed_history,
|
||||||
plugin_id=plugin_id)
|
plugin_id=plugin_id)
|
||||||
|
else:
|
||||||
|
self.del_data(key=history_key,
|
||||||
|
plugin_id=plugin_id)
|
||||||
return handle_cnt
|
return handle_cnt
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
Loading…
x
Reference in New Issue
Block a user