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

This commit is contained in:
Louis Vézina 2018-11-26 17:16:30 -05:00
parent 415833a152
commit 6216bbec39
2 changed files with 6 additions and 0 deletions

View File

@ -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]))

View File

@ -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()