Skip to content

Commit

Permalink
Merge branch 'LimeDrive:develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
TEALC82 authored Jul 19, 2024
2 parents 4180a8a + e8fcbec commit 8c70886
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion stream_fusion/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion stream_fusion/utils/metdata/tmdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def get_metadata(self, id, type):
else:
result = Series(
id=id,
tmdb_id = data["movie_results"][0]["id"],
tmdb_id = data["tv_results"][0]["id"],
titles=[self.replace_weird_characters(data["tv_results"][0]["name"])],
season="S{:02d}".format(int(full_id[1])),
episode="E{:02d}".format(int(full_id[2])),
Expand Down
4 changes: 2 additions & 2 deletions stream_fusion/utils/torrent/torrent_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ def __process_ygg_proxy_url(self, result: TorrentItem):
'accept': 'application/json',
'api-key': settings.ygg_proxy_apikey
}
response = self.__session.get(result.link, allow_redirects=False, timeout=20, headers=headers)
time.sleep(0.3) # Add a delay of 0.3 seconds between requests faire usage for small VPS
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}")
return result
Expand Down

0 comments on commit 8c70886

Please sign in to comment.