diff --git a/modules/radarr.py b/modules/radarr.py index 5c2cd069..1a135aaf 100644 --- a/modules/radarr.py +++ b/modules/radarr.py @@ -24,7 +24,7 @@ class Radarr: self.url = params["url"] self.token = params["token"] try: - self.api = RadarrAPI(self.url, self.token) + self.api = RadarrAPI(self.url, self.token, session=self.config.session) except ArrException as e: raise Failed(e) self.add = params["add"] diff --git a/modules/sonarr.py b/modules/sonarr.py index eee671af..55782b84 100644 --- a/modules/sonarr.py +++ b/modules/sonarr.py @@ -29,7 +29,7 @@ class Sonarr: self.url = params["url"] self.token = params["token"] try: - self.api = SonarrAPI(self.url, self.token) + self.api = SonarrAPI(self.url, self.token, session=self.config.session) except ArrException as e: raise Failed(e) self.add = params["add"] diff --git a/modules/tmdb.py b/modules/tmdb.py index 5179e91a..5ecfc579 100644 --- a/modules/tmdb.py +++ b/modules/tmdb.py @@ -111,7 +111,7 @@ discover_tv_sort = [ class TMDb: def __init__(self, config, params): self.config = config - self.TMDb = tmdbv3api.TMDb() + self.TMDb = tmdbv3api.TMDb(session=self.config.session) self.TMDb.api_key = params["apikey"] self.TMDb.language = params["language"] response = tmdbv3api.Configuration().info() diff --git a/requirements.txt b/requirements.txt index b78713c5..1273e1b0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ PlexAPI==4.6.1 -tmdbv3api==1.7.5 -arrapi==1.0.2 +tmdbv3api==1.7.6 +arrapi==1.1.0 lxml requests>=2.4.2 ruamel.yaml @@ -8,3 +8,4 @@ schedule retrying pathvalidate pillow +python-slugify \ No newline at end of file