Add batch_delay_timer factory
@@ -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
