Rescan for existing subtitles when an episode or a movie file is updated in Sonarr/Radarr.

pull/249/head
Louis Vézina 6 years ago
parent 415833a152
commit 6216bbec39

@ -97,6 +97,9 @@ def sync_episodes():
# Close database connection
c.close()
for updated_episode in episodes_to_update:
store_subtitles(path_replace(updated_episode[1]))
for added_episode in episodes_to_add:
store_subtitles(path_replace(added_episode[3]))

@ -121,6 +121,9 @@ def update_movies():
store_subtitles_movie(path_replace_movie(added_path[0]))
db.close()
for updated_movie in movies_to_update:
store_subtitles_movie(path_replace_movie(updated_movie[1]))
logging.debug('BAZARR All movies synced from Radarr into database.')
list_missing_subtitles_movies()

Loading…
Cancel
Save