Skip to content

Commit

Permalink
Merge branch 'feat/watched-played' of https://github.com/l3uddz/traktarr
Browse files Browse the repository at this point in the history
 into feat/watched-played

* 'feat/watched-played' of https://github.com/l3uddz/traktarr:
  Fix sleep on creating tasks
  • Loading branch information
l3uddz committed Jun 3, 2018
2 parents a9c09ab + 87987cd commit a8e4f5f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions traktarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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:
Expand Down

0 comments on commit a8e4f5f

Please sign in to comment.