Added notification for running embedded subtitles indexing.

This commit is contained in:
Louis Vézina 2019-10-06 16:15:53 -04:00
parent 3f5343c6de
commit 17c2ff70b9
2 changed files with 6 additions and 2 deletions

View File

@ -184,7 +184,9 @@ def sync_episodes():
).execute()
# Store subtitles for added or modified episodes
for altered_episode in altered_episodes:
for i, altered_episode in enumerate(altered_episodes, 1):
notifications.write(msg='Indexing episodes embedded subtitles...', queue='get_episodes', item=i,
length=len(altered_episodes))
store_subtitles(path_replace(altered_episode[1]))
list_missing_subtitles(altered_episode[2])

View File

@ -265,7 +265,9 @@ def update_movies():
).execute()
# Store subtitles for added or modified movies
for altered_movie in altered_movies:
for i, altered_movie in enumerate(altered_movies, 1):
notifications.write(msg='Indexing movies embedded subtitles...', queue='get_movies', item=i,
length=len(altered_movies))
store_subtitles_movie(path_replace_movie(altered_movie[1]))
list_missing_subtitles_movies(altered_movie[2])