fix #537 天空辅种失败问题

This commit is contained in:
thsrite 2023-09-12 11:45:57 +08:00
parent e3c1407b62
commit 9e6a7be5b1

View File

@ -676,6 +676,15 @@ class IYUUAutoSeed(_PluginBase):
"info_hash": "a444850638e7a6f6220e2efdde94099c53358159"
}
"""
def __is_special_site(url):
"""
判断是否为特殊站点是否需要添加https
"""
if "hdsky.me" in url:
return False
return True
self.total += 1
# 获取种子站点及下载地址模板
site_url, download_page = self.iyuuhelper.get_torrent_url(seed.get("sid"))
@ -720,6 +729,7 @@ class IYUUAutoSeed(_PluginBase):
self.cached += 1
return False
# 强制使用Https
if __is_special_site(torrent_url):
if "?" in torrent_url:
torrent_url += "&https=1"
else: