Remove unused batch_delay from TraktApi
MODIFY
plextraktsync/factory.py
plextraktsync/factory.py
@@ -20,10 +20,7 @@ def invalidate(self, keys: List[str] = None):
def trakt_api(self):
from plextraktsync.trakt_api import TraktApi
- config = self.run_config
- trakt = TraktApi(batch_delay=config.batch_delay)
-
- return trakt
+ return TraktApi()
@cached_property
def plex_api(self):

MODIFY
plextraktsync/trakt_api.py
plextraktsync/trakt_api.py
@@ -89,8 +89,7 @@ class TraktApi:
Trakt API class abstracting common data access and dealing with requests cache.
"""
- def __init__(self, batch_delay=None):
- self.batch_delay = batch_delay
+ def __init__(self):
trakt.core.CONFIG_PATH = pytrakt_file
trakt.core.session = factory.session

Remove unused batch_delay from TraktApi