From 87987cd28394e9aa44d9eb8efd39463ba569e01a Mon Sep 17 00:00:00 2001 From: Filipe Santos Date: Sun, 3 Jun 2018 12:41:24 +1200 Subject: [PATCH] Fix sleep on creating tasks --- traktarr.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/traktarr.py b/traktarr.py index e8f1dc5..3f1ecdd 100755 --- a/traktarr.py +++ b/traktarr.py @@ -737,8 +737,8 @@ def run(add_delay=2.5, sort='votes', no_search=False, run_now=False, no_notifica if run_now: movie_schedule.run() - # Sleep between tasks - time.sleep(add_delay) + # Sleep between tasks + time.sleep(add_delay) if cfg.automatic.shows.interval: shows_schedule = schedule.every(cfg.automatic.shows.interval).hours.do( @@ -752,6 +752,9 @@ def run(add_delay=2.5, sort='votes', no_search=False, run_now=False, no_notifica if run_now: shows_schedule.run() + # Sleep between tasks + time.sleep(add_delay) + # Enter running schedule while True: try: