From e8fcbecd02bfcddf201b74088cf2151062319aa5 Mon Sep 17 00:00:00 2001 From: LimeDrive Date: Fri, 19 Jul 2024 00:14:13 +0200 Subject: [PATCH] bump beta --- pyproject.toml | 2 +- stream_fusion/settings.py | 2 +- stream_fusion/utils/torrent/torrent_service.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 346109e..99981e0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "stream-fusion" -version = "0.2.0" +version = "0.3.0" description = "StreamFusion is an advanced plugin for Stremio that significantly enhances its streaming capabilities with debrid service." authors = ["LimeDrive "] readme = "README.md" diff --git a/stream_fusion/settings.py b/stream_fusion/settings.py index 8f40dd2..633b970 100644 --- a/stream_fusion/settings.py +++ b/stream_fusion/settings.py @@ -22,7 +22,7 @@ class Settings(BaseSettings): port: int = 8080 host: str = "0.0.0.0" gunicorn_timeout: int = 180 - aiohttp_timeout: int = 3600 + aiohttp_timeout: int = 7200 reload: bool = False session_key: str = "331cbfe48117fcba53d09572b10d2fc293d86131dc51be46d8aa9843c2e9f48d" use_https: bool = False diff --git a/stream_fusion/utils/torrent/torrent_service.py b/stream_fusion/utils/torrent/torrent_service.py index 0cd7c9b..0ac8130 100644 --- a/stream_fusion/utils/torrent/torrent_service.py +++ b/stream_fusion/utils/torrent/torrent_service.py @@ -91,7 +91,7 @@ class TorrentService: 'accept': 'application/json', 'api-key': settings.ygg_proxy_apikey } - response = self.__session.get(result.link, allow_redirects=False, timeout=20, headers=headers) + response = self.__session.get(result.link, timeout=20, headers=headers) time.sleep(0.1) # Add a delay of 0.1 seconds between requests faire usage for small VPS except requests.exceptions.RequestException: self.logger.error(f"Error while processing url: {result.link}")