Import trakt classes directly
MODIFY
plextraktsync/factory.py
plextraktsync/factory.py
@@ -23,7 +23,7 @@ def invalidate(self, keys: List[str] = None):
@cached_property
def trakt_api(self):
- from plextraktsync.trakt_api import TraktApi
+ from plextraktsync.trakt.TraktApi import TraktApi
return TraktApi()
@@ -260,7 +260,7 @@ def batch_delay_timer(self):
def trakt_batch(self):
from functools import partial
- from plextraktsync.trakt_api import TraktBatch
+ from plextraktsync.trakt.TraktBatch import TraktBatch
return partial(
TraktBatch,

MODIFY
plextraktsync/media.py
plextraktsync/media.py
from plextraktsync.decorators.cached_property import cached_property
from plextraktsync.factory import logger
-from plextraktsync.trakt_api import TraktLookup
+from plextraktsync.trakt.TraktLookup import TraktLookup
if TYPE_CHECKING:
from typing import List, Optional

MODIFY
plextraktsync/sync.py
plextraktsync/sync.py
from plextraktsync.config import Config
from plextraktsync.media import Media
from plextraktsync.plex.PlexApi import PlexApi
- from plextraktsync.trakt_api import TraktApi
+ from plextraktsync.trakt.TraktApi import TraktApi
from plextraktsync.walker import Walker

MODIFY
plextraktsync/walker.py
plextraktsync/walker.py
from plextraktsync.decorators.measure_time import measure_time
from plextraktsync.plex.PlexGuid import PlexGuid
from plextraktsync.plex.PlexLibraryItem import PlexLibraryItem
-from plextraktsync.trakt_api import TraktApi, TraktItem
+from plextraktsync.trakt.TraktApi import TraktApi
+from plextraktsync.trakt.TraktItem import TraktItem
if TYPE_CHECKING:
from typing import Any, Generator, List, Set

Import trakt classes directly