Skip to content

Commit

Permalink
Add sync database to sync
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Jul 7, 2024
1 parent df4d06f commit 7d06631
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plextraktsync/sync/Sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,18 @@
from plextraktsync.plan.Walker import Walker
from plextraktsync.plex.PlexApi import PlexApi
from plextraktsync.trakt.TraktApi import TraktApi
from plextraktsync.db.SyncDatabase import SyncDatabase


class Sync:
logger = logging.getLogger(__name__)

def __init__(self, config: SyncConfig, plex: PlexApi, trakt: TraktApi):
def __init__(self, config: SyncConfig, plex: PlexApi, trakt: TraktApi, sync_state: SyncDatabase):
self.config = config
self.plex = plex
self.trakt = trakt
self.walker = None
self.sync_state = sync_state

@cached_property
def trakt_lists(self):
Expand Down

0 comments on commit 7d06631

Please sign in to comment.