Add factory for Sync
MODIFY
plex_trakt_sync/factory.py
plex_trakt_sync/factory.py
@@ -56,6 +56,14 @@ def requests_cache(self):
return requests_cache
+ @memoize
+ def sync(self):
+ from plex_trakt_sync.sync import Sync
+
+ config = self.config()
+
+ return Sync(config)
+
@memoize
def progressbar(self, enabled=True):
if enabled:

Add factory for Sync