Merge branch 'feat/watched-played' of https://github.com/l3uddz/traktarr into feat/watched-played

* 'feat/watched-played' of https://github.com/l3uddz/traktarr:
  Fix sleep on creating tasks
pull/54/head
James 7 years ago
commit bef74c8941

@ -739,8 +739,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(
@ -754,6 +754,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:

Loading…
Cancel
Save