Import plex_api classes directly
MODIFY
plextraktsync/factory.py
plextraktsync/factory.py
@@ -29,7 +29,7 @@ def trakt_api(self):
@cached_property
def plex_api(self):
- from plextraktsync.plex_api import PlexApi
+ from plextraktsync.plex.PlexApi import PlexApi
server = self.plex_server
plex = PlexApi(server)

MODIFY
plextraktsync/trakt/TraktApi.py
plextraktsync/trakt/TraktApi.py
from trakt.tv import TVEpisode, TVShow
from plextraktsync.plex.PlexGuid import PlexGuid
- from plextraktsync.plex_api import PlexLibraryItem
+ from plextraktsync.plex.PlexLibraryItem import PlexLibraryItem
from plextraktsync.trakt.TraktBatch import TraktBatch

MODIFY
plextraktsync/walker.py
plextraktsync/walker.py
from plextraktsync.decorators.cached_property import cached_property
from plextraktsync.decorators.measure_time import measure_time
-from plextraktsync.plex_api import PlexGuid, PlexLibraryItem
+from plextraktsync.plex.PlexGuid import PlexGuid
+from plextraktsync.plex.PlexLibraryItem import PlexLibraryItem
from plextraktsync.trakt_api import TraktApi, TraktItem
if TYPE_CHECKING:

Import plex_api classes directly