Merge pull request #964 from thsrite/main

This commit is contained in:
jxxghp 2023-10-25 10:20:39 +08:00 committed by GitHub
commit fe5a90ac2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1059,17 +1059,10 @@ class MediaSyncDel(_PluginBase):
if action_flag == "stop":
self.tr.stop_torrents(torrent)
logger.info(f"辅种:{downloader} - {torrent} 暂停")
# 删除本下载器辅种历史
if action_flag == "del":
del history
break
# 更新辅种历史
if seed_history:
self.save_data(key=history_key,
value=seed_history,
plugin_id=plugin_id)
else:
# 删除辅种历史
if action_flag == "del":
self.del_data(key=history_key,
plugin_id=plugin_id)
return handle_torrent_hashs