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/35/head
James 7 years ago
commit a8e4f5fa0f

@ -739,8 +739,8 @@ def run(add_delay=2.5, sort='votes', no_search=False, run_now=False, no_notifica
if run_now: if run_now:
movie_schedule.run() movie_schedule.run()
# Sleep between tasks # Sleep between tasks
time.sleep(add_delay) time.sleep(add_delay)
if cfg.automatic.shows.interval: if cfg.automatic.shows.interval:
shows_schedule = schedule.every(cfg.automatic.shows.interval).hours.do( 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: if run_now:
shows_schedule.run() shows_schedule.run()
# Sleep between tasks
time.sleep(add_delay)
# Enter running schedule # Enter running schedule
while True: while True:
try: try:

Loading…
Cancel
Save