Use queue size to check if need to submit
@@ -242,8 +242,8 @@ def __init__(self, trakt: TraktApi, batch_size=None):
@nocache
@rate_limit(delay=TRAKT_POST_DELAY)
def submit_collection(self):
- if not len(self.collection):
- return None
+ if self.queue_size() == 0:
+ return
try:
result = trakt.sync.add_to_collection(self.collection)
