From 4b94dd5cbfd7ce8c958e712eb8014d8b3e63aea6 Mon Sep 17 00:00:00 2001 From: l3uddz Date: Fri, 9 Mar 2018 18:28:01 +0000 Subject: [PATCH] changed schedule from minutes to hours for specified automatical interval. --- traktarr.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/traktarr.py b/traktarr.py index 52d097f..6363ffd 100644 --- a/traktarr.py +++ b/traktarr.py @@ -370,7 +370,7 @@ def automatic_shows(add_delay=2.5, no_search=False, notifications=False): # sleep time.sleep(10) - log.info("Added %d shows total to Sonarr", total_shows_added) + log.info("Finished, added %d shows total to Sonarr", total_shows_added) # send notification if notifications: notify.send(message="Added %d shows total to Sonarr" % total_shows_added) @@ -411,7 +411,7 @@ def automatic_movies(add_delay=2.5, no_search=False, notifications=False): # sleep time.sleep(10) - log.info("Added %d movies total to Radarr", total_movies_added) + log.info("Finished, added %d movies total to Radarr", total_movies_added) # send notification if notifications: notify.send(message="Added %d movies total to Radarr" % total_movies_added) @@ -428,9 +428,9 @@ def automatic_movies(add_delay=2.5, no_search=False, notifications=False): @click.option('--no-notifications', is_flag=True, help="Disable notifications.") def run(add_delay=2.5, no_search=False, no_notifications=False): # add tasks to repeat - schedule.every(cfg.automatic.movies.interval).minutes.do(automatic_movies, add_delay, no_search, - not no_notifications) - schedule.every(cfg.automatic.shows.interval).minutes.do(automatic_shows, add_delay, no_search, not no_notifications) + schedule.every(cfg.automatic.movies.interval).hours.do(automatic_movies, add_delay, no_search, + not no_notifications) + schedule.every(cfg.automatic.shows.interval).hours.do(automatic_shows, add_delay, no_search, not no_notifications) # run schedule log.info("Automatic mode is now running...")