fix 同步历史记录插件增加下载器映射

This commit is contained in:
thsrite
2023-08-08 16:09:36 +08:00
parent 78fd659e35
commit 588089a079
2 changed files with 58 additions and 2 deletions

View File

@ -608,7 +608,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