Add batch_delay_timer factory
MODIFY
plextraktsync/factory.py
plextraktsync/factory.py
@@ -222,6 +222,12 @@ def invalidate_plex_cache(key, value):
return config
+ @cached_property
+ def batch_delay_timer(self):
+ from plextraktsync.timer import Timer
+
+ return Timer(self.run_config.batch_delay) if self.run_config.batch_delay else None
+
@cached_property
def trakt_batch(self):
from functools import partial

Add batch_delay_timer factory