This commit is contained in:
Maxim Devaev 2024-08-19 01:06:00 +03:00
parent abedace4b3
commit c9405efa05
3 changed files with 3 additions and 3 deletions

View File

@ -357,7 +357,7 @@ class Streamer: # pylint: disable=too-many-instance-attributes
try: try:
async with session.get( async with session.get(
self.__make_url("snapshot"), self.__make_url("snapshot"),
timeout=self.__snapshot_timeout, timeout=aiohttp.ClientTimeout(total=self.__snapshot_timeout),
) as response: ) as response:
htclient.raise_not_200(response) htclient.raise_not_200(response)

View File

@ -79,6 +79,6 @@ async def download(
), ),
} }
async with aiohttp.ClientSession(**kwargs) as session: async with aiohttp.ClientSession(**kwargs) as session:
async with session.get(url, verify_ssl=verify) as response: async with session.get(url, verify_ssl=verify) as response: # type: ignore
raise_not_200(response) raise_not_200(response)
yield response yield response

View File

@ -75,7 +75,7 @@ class Plugin(BaseAuthService):
async with session.request( async with session.request(
method="POST", method="POST",
url=self.__url, url=self.__url,
timeout=self.__timeout, timeout=aiohttp.ClientTimeout(total=self.__timeout),
json={ json={
"user": user, "user": user,
"passwd": passwd, "passwd": passwd,