Skip to content

Commit

Permalink
fix #4677
Browse files Browse the repository at this point in the history
  • Loading branch information
xuhailong11 committed May 9, 2023
1 parent bf31254 commit 2c20fe4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/plugins/modules/iyuuautoseed.py
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,10 @@ def __download_torrent(self, seed, downloader, save_path):
self.cached += 1
return False
# 强制使用Https
torrent_url = f"{torrent_url}&https=1"
if "?" in torrent_url:
torrent_url += "&https=1"
else:
torrent_url += "?https=1"
meta_info = MetaInfo(title="IYUU自动辅种")
meta_info.set_torrent_info(site=site_info.get("name"),
enclosure=torrent_url)
Expand Down Expand Up @@ -757,6 +760,9 @@ def __is_special_site(url):
"""
判断是否为特殊站点
"""
spec_params = ["hash=", "authkey="]
if any(field in base_url for field in spec_params):
return True
if "hdchina.org" in url:
return True
if "hdsky.me" in url:
Expand Down

0 comments on commit 2c20fe4

Please sign in to comment.