TraktBatch: flip force to be on by default
This makes cleanup function signature simpler
MODIFY
plextraktsync/trakt_api.py
plextraktsync/trakt_api.py
@@ -416,7 +416,7 @@ def queue_size(self):
return size
- def flush(self, force=False):
+ def flush(self, force=True):
"""
Flush the queue not sooner than seconds specified in timer
"""
@@ -438,7 +438,7 @@ def add_to_items(self, media_type: str, item):
Add item of media_type to list of items
"""
self.items[media_type].append(item)
- self.flush()
+ self.flush(force=False)
def trakt_sync(self, media_object):
if self.name == "collection":

TraktBatch: flip force to be on by default

This makes cleanup function signature simpler