tmdb and arr sessions requirements update

pull/351/head
meisnate12 3 years ago
parent f9e736649e
commit d25568d67a

@ -24,7 +24,7 @@ class Radarr:
self.url = params["url"] self.url = params["url"]
self.token = params["token"] self.token = params["token"]
try: try:
self.api = RadarrAPI(self.url, self.token) self.api = RadarrAPI(self.url, self.token, session=self.config.session)
except ArrException as e: except ArrException as e:
raise Failed(e) raise Failed(e)
self.add = params["add"] self.add = params["add"]

@ -29,7 +29,7 @@ class Sonarr:
self.url = params["url"] self.url = params["url"]
self.token = params["token"] self.token = params["token"]
try: try:
self.api = SonarrAPI(self.url, self.token) self.api = SonarrAPI(self.url, self.token, session=self.config.session)
except ArrException as e: except ArrException as e:
raise Failed(e) raise Failed(e)
self.add = params["add"] self.add = params["add"]

@ -111,7 +111,7 @@ discover_tv_sort = [
class TMDb: class TMDb:
def __init__(self, config, params): def __init__(self, config, params):
self.config = config self.config = config
self.TMDb = tmdbv3api.TMDb() self.TMDb = tmdbv3api.TMDb(session=self.config.session)
self.TMDb.api_key = params["apikey"] self.TMDb.api_key = params["apikey"]
self.TMDb.language = params["language"] self.TMDb.language = params["language"]
response = tmdbv3api.Configuration().info() response = tmdbv3api.Configuration().info()

@ -1,6 +1,6 @@
PlexAPI==4.6.1 PlexAPI==4.6.1
tmdbv3api==1.7.5 tmdbv3api==1.7.6
arrapi==1.0.2 arrapi==1.1.0
lxml lxml
requests>=2.4.2 requests>=2.4.2
ruamel.yaml ruamel.yaml
@ -8,3 +8,4 @@ schedule
retrying retrying
pathvalidate pathvalidate
pillow pillow
python-slugify
Loading…
Cancel
Save