Skip submitting empty collection
MODIFY
plex_trakt_sync/trakt_api.py
plex_trakt_sync/trakt_api.py
@@ -231,6 +231,9 @@ def __init__(self, trakt: TraktApi):
@nocache
@rate_limit(delay=TRAKT_POST_DELAY)
def submit_collection(self):
+ if not len(self.collection):
+ return None
+
try:
return trakt.sync.add_to_collection(self.collection)
finally:

Skip submitting empty collection