This commit is contained in:
2021-11-20 19:13:04 +03:00
parent 77342f3ff1
commit c957265310

View File

@@ -68,8 +68,8 @@ class FLDownloader(BaseDownloader):
) )
async with httpx.AsyncClient(proxies=httpx_proxy) as client: async with httpx.AsyncClient(proxies=httpx_proxy) as client:
response = await client.get(url, follow_redirects=True) response = await client.get(url, follow_redirects=True, timeout=10 * 60)
content_type = response.headers.get("Content-Type", timeout=10 * 60) content_type = response.headers.get("Content-Type")
if response.status_code != 200: if response.status_code != 200:
raise NotSuccess(f'Status code is {response.status_code}!') raise NotSuccess(f'Status code is {response.status_code}!')