mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-08 08:57:09 +08:00
fix get_rss timeout
This commit is contained in:
+6
-1
@@ -313,6 +313,11 @@ class SiteChain(ChainBase):
|
|||||||
siteoper = SiteOper()
|
siteoper = SiteOper()
|
||||||
rsshelper = RssHelper()
|
rsshelper = RssHelper()
|
||||||
for domain, cookie in cookies.items():
|
for domain, cookie in cookies.items():
|
||||||
|
# 检查系统是否停止
|
||||||
|
if global_vars.is_system_stopped:
|
||||||
|
logger.info("系统正在停止,中断CookieCloud同步")
|
||||||
|
return False, "系统正在停止,同步被中断"
|
||||||
|
|
||||||
# 索引器信息
|
# 索引器信息
|
||||||
indexer = siteshelper.get_indexer(domain)
|
indexer = siteshelper.get_indexer(domain)
|
||||||
# 数据库的站点信息
|
# 数据库的站点信息
|
||||||
@@ -331,7 +336,7 @@ class SiteChain(ChainBase):
|
|||||||
cookie=cookie,
|
cookie=cookie,
|
||||||
ua=site_info.ua or settings.USER_AGENT,
|
ua=site_info.ua or settings.USER_AGENT,
|
||||||
proxy=True if site_info.proxy else False,
|
proxy=True if site_info.proxy else False,
|
||||||
timeout=site_info.timeout
|
timeout=site_info.timeout or 15
|
||||||
)
|
)
|
||||||
if rss_url:
|
if rss_url:
|
||||||
logger.info(f"更新站点 {domain} RSS地址 ...")
|
logger.info(f"更新站点 {domain} RSS地址 ...")
|
||||||
|
|||||||
Reference in New Issue
Block a user