Remove unused cleanup from TraktBatch
MODIFY
plextraktsync/factory.py
plextraktsync/factory.py
@@ -261,7 +261,6 @@ def trakt_batch(self):
TraktBatch,
trakt=self.trakt_api,
timer=self.batch_delay_timer,
- cleanup=self.cleanup,
)

MODIFY
plextraktsync/trakt/TraktBatch.py
plextraktsync/trakt/TraktBatch.py
if TYPE_CHECKING:
from plextraktsync.trakt.TraktApi import TraktApi
- from plextraktsync.util.Cleanup import Cleanup
class TraktBatch:
- def __init__(self, name: str, add: bool, trakt: TraktApi, timer=None, cleanup: Cleanup = None):
+ def __init__(self, name: str, add: bool, trakt: TraktApi, timer=None):
if name not in ["collection", "watchlist"]:
raise ValueError(f"TraktBatch name not allowed: {name}")
self.name = name

Remove unused cleanup from TraktBatch