mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-07 08:26:53 +08:00
fix timeout
This commit is contained in:
@@ -24,7 +24,7 @@ class PluginHelper(metaclass=Singleton):
|
|||||||
"""
|
"""
|
||||||
if not repo_url:
|
if not repo_url:
|
||||||
return {}
|
return {}
|
||||||
res = RequestUtils(proxies=settings.PROXY).get_res(f"{repo_url}package.json")
|
res = RequestUtils(proxies=settings.PROXY, timeout=10).get_res(f"{repo_url}package.json")
|
||||||
if res:
|
if res:
|
||||||
return json.loads(res.text)
|
return json.loads(res.text)
|
||||||
return {}
|
return {}
|
||||||
|
|||||||
Reference in New Issue
Block a user