From 2a19119a58b66538c7583f9a1409a4104032eea7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 30 Apr 2024 20:11:59 +0300 Subject: [PATCH] Enable TraktListsPlugin only if two other plugins need it --- plextraktsync/sync/TraktListsPlugin.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plextraktsync/sync/TraktListsPlugin.py b/plextraktsync/sync/TraktListsPlugin.py index 6039e62f2f..59273f7ca8 100644 --- a/plextraktsync/sync/TraktListsPlugin.py +++ b/plextraktsync/sync/TraktListsPlugin.py @@ -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):