Merge pull request #457 from zhi1ong/main

This commit is contained in:
jxxghp
2024-08-27 11:09:22 +08:00
committed by GitHub
2 changed files with 8 additions and 11 deletions

View File

@@ -283,13 +283,13 @@
"name": "IYUU自动辅种",
"description": "基于IYUU官方Api实现自动辅种。",
"labels": "做种,IYUU",
"version": "1.9.4",
"version": "1.9.5",
"icon": "IYUU.png",
"author": "jxxghp",
"level": 2,
"history": {
"v1.9.5": "修复跳过检验后不会检查种子完整度直接做种",
"v1.9.4": "修复qbittorrent 添加种子并跳过检验后会标记为完成不会自动做种",
"v1.9.5": "Revert qBittorrent跳检之后自动开始",
"v1.9.4": "修复qBittorrent辅种后不会自动开始做种",
"v1.9.3": "修复Monika因缺少rsskey种子下载失败的问题",
"v1.9.2": "适配馒头使用API下载种子",
"v1.9.1": "支持自定义辅种的种子分类",

View File

@@ -34,7 +34,7 @@ class IYUUAutoSeed(_PluginBase):
# 插件图标
plugin_icon = "IYUU.png"
# 插件版本
plugin_version = "1.9.4"
plugin_version = "1.9.5"
# 插件作者
plugin_author = "jxxghp"
# 作者主页
@@ -957,12 +957,10 @@ class IYUUAutoSeed(_PluginBase):
if self._skipverify:
# 跳过校验
logger.info(f"{download_id} 跳过校验,请自行检查...")
# qbittorrent 添加种子并跳过检验后会标记为完成不会自动做种
# 加入校验种子列表,但是跳过校验
if downloader == "qbittorrent":
if not self._recheck_torrents.get(downloader):
self._recheck_torrents[downloader] = []
self._recheck_torrents[downloader].append(download_id)
# 请注意这里是故意不自动开始的
# 跳过校验存在直接失败、种子目录相同文件不同等异常情况
# 必须要用户自行二次确认之后才能开始做种
# 否则会出现反复下载刷掉分享率、做假种的情况
else:
# 追加校验任务
logger.info(f"添加校验检查任务:{download_id} ...")
@@ -973,7 +971,6 @@ class IYUUAutoSeed(_PluginBase):
if downloader == "qbittorrent":
# 开始校验种子
downloader_obj.recheck_torrents(ids=[download_id])
# 下载成功
logger.info(f"成功添加辅种下载,站点:{site_info.get('name')},种子链接:{torrent_url}")
# 成功也加入缓存,有一些改了路径校验不通过的,手动删除后,下一次又会辅上