feat: 站点管理增加下载器选择

This commit is contained in:
Attente
2024-11-16 00:22:04 +08:00
parent c7926fc575
commit 0066247a2b
6 changed files with 11 additions and 2 deletions
+2 -1
View File
@@ -225,6 +225,7 @@ class DownloadChain(ChainBase):
_torrent = context.torrent_info
_media = context.media_info
_meta = context.meta_info
_downloader = _torrent.site_downloader
# 补充完整的media数据
if not _media.genre_ids:
@@ -287,7 +288,7 @@ class DownloadChain(ChainBase):
episodes=episodes,
download_dir=download_dir,
category=_media.category,
downloader=downloader)
downloader=downloader or _downloader)
if result:
_downloader, _hash, error_msg = result
else:
+1
View File
@@ -120,6 +120,7 @@ class TorrentsChain(ChainBase, metaclass=Singleton):
site_ua=site.get("ua") or settings.USER_AGENT,
site_proxy=site.get("proxy"),
site_order=site.get("pri"),
site_downloader=site.get("downloader"),
title=item.get("title"),
enclosure=item.get("enclosure"),
page_url=item.get("link"),