Add trakt_batch factory partial
@@ -217,6 +217,18 @@ def invalidate_plex_cache(key, value):
return config
+ @cached_property
+ def trakt_batch(self):
+ from functools import partial
+
+ from plextraktsync.trakt_api import TraktBatch
+
+ return partial(
+ TraktBatch,
+ trakt=self.trakt_api,
+ batch_delay=self.run_config.batch_delay,
+ )
+
factory = Factory()
logger = factory.logger
