Import Config directly from class module
MODIFY
plextraktsync/factory.py
plextraktsync/factory.py
@@ -258,7 +258,7 @@ def console_logger(self):
@cached_property
def config(self):
- from plextraktsync.config import Config
+ from plextraktsync.config.Config import Config
def invalidate_plex_cache(key, value):
self.invalidate(["has_plex_token", "server_config"])

MODIFY
plextraktsync/sync.py
plextraktsync/sync.py
from plextraktsync.trakt_list_util import TraktListUtil
if TYPE_CHECKING:
- from plextraktsync.config import Config
+ from plextraktsync.config.Config import Config
from plextraktsync.media import Media
from plextraktsync.plex.PlexApi import PlexApi
from plextraktsync.trakt.TraktApi import TraktApi

MODIFY
plextraktsync/watch/WatchStateUpdater.py
plextraktsync/watch/WatchStateUpdater.py
from plextraktsync.factory import logging
if TYPE_CHECKING:
- from plextraktsync.config import Config
+ from plextraktsync.config.Config import Config
from plextraktsync.media import Media, MediaFactory
from plextraktsync.plex.PlexApi import PlexApi
from plextraktsync.plex.PlexLibraryItem import PlexLibraryItem

Import Config directly from class module