Skip to content

Commit

Permalink
Enable TraktListsPlugin only if two other plugins need it
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Apr 30, 2024
1 parent bfcca96 commit 2a19119
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions plextraktsync/sync/TraktListsPlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@ def __init__(self):

@staticmethod
def enabled(config):
# Check for need is performed in init()
return True
return any([
# LikedListsPlugin
config.sync_liked_lists,
# WatchListPlugin
config.sync_watchlists,
])

@classmethod
def factory(cls, sync):
Expand Down

0 comments on commit 2a19119

Please sign in to comment.