Added notification for running embedded subtitles indexing.

pull/614/head
Louis Vézina 5 years ago
parent 3f5343c6de
commit 17c2ff70b9

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

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

Loading…
Cancel
Save