Logic: Removed delay after failed/skipped items.

pull/105/head
desimaniac 5 years ago
parent 6f3a74f659
commit 07e8d309a4

@ -418,6 +418,11 @@ def shows(list_type, add_limit=0, add_delay=2.5, sort='votes', genre=None, folde
else:
log.error("FAILED ADDING: \'%s (%s)\' with tags: %s", series['show']['title'], series_year,
sonarr_helper.readable_tag_from_ids(profile_tags, use_tags))
continue
else:
log.info("SKIPPED: \'%s (%s)\'", series['show']['title'], series_year)
continue
# stop adding shows, if added_shows >= add_limit
if add_limit and added_shows >= add_limit:
@ -766,17 +771,15 @@ def movies(list_type, add_limit=0, add_delay=2.5, sort='votes', rating=None, gen
cfg.radarr.root_folder, cfg.radarr.minimum_availability, not no_search):
log.info("ADDED: \'%s (%s)\'", sorted_movie['movie']['title'], movie_year)
if notifications:
callback_notify({'event': 'add_movie', 'list_type': list_type, 'movie': sorted_movie['movie']})
added_movies += 1
else:
log.error("FAILED ADDING: \'%s (%s)\'", sorted_movie['movie']['title'], movie_year)
continue
else:
log.info("SKIPPED: \'%s (%s)\'", sorted_movie['movie']['title'], movie_year)
continue
# stop adding movies, if added_movies >= add_limit
if add_limit and added_movies >= add_limit:

Loading…
Cancel
Save