Merge pull request #44 from thsrite/main

fix 同步历史记录插件增加下载器映射
This commit is contained in:
jxxghp
2023-08-08 17:30:07 +08:00
committed by GitHub
3 changed files with 194 additions and 109 deletions

View File

@ -610,7 +610,7 @@ class IYUUAutoSeed(_PluginBase):
if not history.get("downloader"):
continue
# 如果本次辅种下载器之前有过记录则继续添加
if int(history.get("downloader")) == downloader:
if str(history.get("downloader")) == downloader:
history_torrents = history.get("torrents") or []
history["torrents"] = list(set(history_torrents + success_torrents))
new_history = False