|
|
@ -176,6 +176,11 @@ def shows(list_type, add_limit=0, add_delay=2.5, no_search=False, notifications=
|
|
|
|
log.exception("Exception while processing show %s: ", series['show']['title'])
|
|
|
|
log.exception("Exception while processing show %s: ", series['show']['title'])
|
|
|
|
|
|
|
|
|
|
|
|
log.info("Added %d new show(s) to Sonarr", added_shows)
|
|
|
|
log.info("Added %d new show(s) to Sonarr", added_shows)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# send notification
|
|
|
|
|
|
|
|
if notifications:
|
|
|
|
|
|
|
|
notify.send(message="Added %d shows from Trakt's %s list" % (added_shows, list_type))
|
|
|
|
|
|
|
|
|
|
|
|
return added_shows
|
|
|
|
return added_shows
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -310,6 +315,11 @@ def movies(list_type, add_limit=0, add_delay=2.5, no_search=False, notifications
|
|
|
|
log.exception("Exception while processing movie %s: ", movie['movie']['title'])
|
|
|
|
log.exception("Exception while processing movie %s: ", movie['movie']['title'])
|
|
|
|
|
|
|
|
|
|
|
|
log.info("Added %d new movie(s) to Radarr", added_movies)
|
|
|
|
log.info("Added %d new movie(s) to Radarr", added_movies)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# send notification
|
|
|
|
|
|
|
|
if notifications:
|
|
|
|
|
|
|
|
notify.send(message="Added %d movies from Trakt's %s list" % (added_movies, list_type))
|
|
|
|
|
|
|
|
|
|
|
|
return added_movies
|
|
|
|
return added_movies
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -363,10 +373,6 @@ def automatic_shows(add_delay=2.5, no_search=False, notifications=False):
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|
total_shows_added += added_shows
|
|
|
|
total_shows_added += added_shows
|
|
|
|
|
|
|
|
|
|
|
|
# send notification
|
|
|
|
|
|
|
|
if notifications and not cfg.notifications.verbose:
|
|
|
|
|
|
|
|
notify.send(message="Added %d shows from Trakt's %s list" % (added_shows, list_type))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# sleep
|
|
|
|
# sleep
|
|
|
|
time.sleep(10)
|
|
|
|
time.sleep(10)
|
|
|
|
|
|
|
|
|
|
|
@ -404,10 +410,6 @@ def automatic_movies(add_delay=2.5, no_search=False, notifications=False):
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|
total_movies_added += added_movies
|
|
|
|
total_movies_added += added_movies
|
|
|
|
|
|
|
|
|
|
|
|
# send notification
|
|
|
|
|
|
|
|
if notifications and not cfg.notifications.verbose:
|
|
|
|
|
|
|
|
notify.send(message="Added %d movies from Trakt's %s list" % (added_movies, list_type))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# sleep
|
|
|
|
# sleep
|
|
|
|
time.sleep(10)
|
|
|
|
time.sleep(10)
|
|
|
|
|
|
|
|
|
|
|
|