reduced sleep between runs for each trakt list.

pull/5/head
l3uddz 7 years ago
parent 865134c26e
commit 68c960e579

@ -340,7 +340,7 @@ def automatic_shows(add_delay=2.5, no_search=False, notifications=False):
notifications=notifications) notifications=notifications)
if added_shows is None: if added_shows is None:
log.error("Failed adding shows from Trakt's %s list", list_type) log.error("Failed adding shows from Trakt's %s list", list_type)
time.sleep(15) time.sleep(10)
continue continue
total_shows_added += added_shows total_shows_added += added_shows
@ -348,7 +348,7 @@ def automatic_shows(add_delay=2.5, no_search=False, notifications=False):
log.info("Added %d shows from Trakt's %s list", added_shows, list_type) log.info("Added %d shows from Trakt's %s list", added_shows, list_type)
# sleep # sleep
time.sleep(15) time.sleep(10)
log.info("Finished, added %d shows in total to Sonarr", total_shows_added) log.info("Finished, added %d shows in total to Sonarr", total_shows_added)
@ -377,7 +377,7 @@ def automatic_movies(add_delay=2.5, no_search=False, notifications=False):
notifications=notifications) notifications=notifications)
if added_movies is None: if added_movies is None:
log.error("Failed adding movies from Trakt's %s list", list_type) log.error("Failed adding movies from Trakt's %s list", list_type)
time.sleep(15) time.sleep(10)
continue continue
total_movies_added += added_movies total_movies_added += added_movies
@ -385,7 +385,7 @@ def automatic_movies(add_delay=2.5, no_search=False, notifications=False):
log.info("Added %d movies from Trakt's %s list", added_movies, list_type) log.info("Added %d movies from Trakt's %s list", added_movies, list_type)
# sleep # sleep
time.sleep(15) time.sleep(10)
log.info("Finished, added %d movies in total to Radarr", total_movies_added) log.info("Finished, added %d movies in total to Radarr", total_movies_added)

Loading…
Cancel
Save