Skip to content

Commit

Permalink
fix IYUUAutoSeed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jxxghp committed Aug 14, 2023
1 parent 2ede2cc commit d4c0d65
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/plugins/iyuuautoseed/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from apscheduler.schedulers.background import BackgroundScheduler
from apscheduler.triggers.cron import CronTrigger
from lxml import etree
from ruamel.yaml import CommentedMap

from app.core.config import settings
from app.helper.sites import SitesHelper
Expand Down Expand Up @@ -809,7 +810,7 @@ def __get_save_path(torrent: Any, dl_type: str):
print(str(e))
return ""

def __get_download_url(self, seed: dict, site: dict, base_url: str):
def __get_download_url(self, seed: dict, site: CommentedMap, base_url: str):
"""
拼装种子下载链接
"""
Expand Down Expand Up @@ -874,7 +875,7 @@ def __get_torrent_url_from_page(self, seed: dict, site: dict):
logger.info(f"正在获取种子下载链接:{page_url} ...")
res = RequestUtils(
cookies=site.get("cookie"),
headers=site.get("ua"),
ua=site.get("ua"),
proxies=settings.PROXY if site.get("proxy") else None
).get_res(url=page_url)
if res is not None and res.status_code in (200, 500):
Expand Down

0 comments on commit d4c0d65

Please sign in to comment.