|
|
|
@ -811,6 +811,12 @@ def series_download_subtitles(no):
|
|
|
|
|
logging.info("BAZARR All providers are throttled")
|
|
|
|
|
break
|
|
|
|
|
|
|
|
|
|
show_progress(id='series_search_progress_{}'.format(no),
|
|
|
|
|
header='Searching missing subtitles...',
|
|
|
|
|
name='Completed successfully',
|
|
|
|
|
value=count_episodes_details,
|
|
|
|
|
count=count_episodes_details)
|
|
|
|
|
|
|
|
|
|
hide_progress(id='series_search_progress_{}'.format(no))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -937,6 +943,12 @@ def movies_download_subtitles(no):
|
|
|
|
|
logging.info("BAZARR All providers are throttled")
|
|
|
|
|
break
|
|
|
|
|
|
|
|
|
|
show_progress(id='movie_search_progress_{}'.format(no),
|
|
|
|
|
header='Searching missing subtitles...',
|
|
|
|
|
name='Completed successfully',
|
|
|
|
|
value=count_movie,
|
|
|
|
|
count=count_movie)
|
|
|
|
|
|
|
|
|
|
hide_progress(id='movie_search_progress_{}'.format(no))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1109,6 +1121,12 @@ def wanted_search_missing_subtitles_series():
|
|
|
|
|
logging.info("BAZARR All providers are throttled")
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
show_progress(id='wanted_episodes_progress',
|
|
|
|
|
header='Searching subtitles...',
|
|
|
|
|
name='Completed successfully',
|
|
|
|
|
value=count_episodes,
|
|
|
|
|
count=count_episodes)
|
|
|
|
|
|
|
|
|
|
hide_progress(id='wanted_episodes_progress')
|
|
|
|
|
|
|
|
|
|
logging.info('BAZARR Finished searching for missing Series Subtitles. Check History for more information.')
|
|
|
|
@ -1135,6 +1153,12 @@ def wanted_search_missing_subtitles_movies():
|
|
|
|
|
logging.info("BAZARR All providers are throttled")
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
show_progress(id='wanted_movies_progress',
|
|
|
|
|
header='Searching subtitles...',
|
|
|
|
|
name='Completed successfully',
|
|
|
|
|
value=count_movies,
|
|
|
|
|
count=count_movies)
|
|
|
|
|
|
|
|
|
|
hide_progress(id='wanted_movies_progress')
|
|
|
|
|
|
|
|
|
|
logging.info('BAZARR Finished searching for missing Movies Subtitles. Check History for more information.')
|
|
|
|
@ -1357,7 +1381,7 @@ def upgrade_subtitles():
|
|
|
|
|
if settings.general.getboolean('use_sonarr'):
|
|
|
|
|
for i, episode in enumerate(episodes_to_upgrade, 1):
|
|
|
|
|
show_progress(id='upgrade_episodes_progress',
|
|
|
|
|
header='Upgrading subtitles...',
|
|
|
|
|
header='Upgrading episodes subtitles...',
|
|
|
|
|
name='{0} - S{1:02d}E{2:02d} - {3}'.format(episode['seriesTitle'],
|
|
|
|
|
episode['season'],
|
|
|
|
|
episode['episode'],
|
|
|
|
@ -1419,14 +1443,18 @@ def upgrade_subtitles():
|
|
|
|
|
language_code, provider, score, subs_id, subs_path)
|
|
|
|
|
send_notifications(episode['sonarrSeriesId'], episode['sonarrEpisodeId'], message)
|
|
|
|
|
|
|
|
|
|
hide_progress(id='upgrade_episodes_progress')
|
|
|
|
|
show_progress(id='upgrade_episodes_progress',
|
|
|
|
|
header='Upgrading episodes subtitles...',
|
|
|
|
|
name='Completed successfully',
|
|
|
|
|
value=count_episode_to_upgrade,
|
|
|
|
|
count=count_episode_to_upgrade)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
hide_progress(id='upgrade_episodes_progress')
|
|
|
|
|
|
|
|
|
|
if settings.general.getboolean('use_radarr'):
|
|
|
|
|
for i, movie in enumerate(movies_to_upgrade, 1):
|
|
|
|
|
show_progress(id='upgrade_movies_progress',
|
|
|
|
|
header='Upgrading subtitles...',
|
|
|
|
|
header='Upgrading movies subtitles...',
|
|
|
|
|
name=movie['title'],
|
|
|
|
|
value=i,
|
|
|
|
|
count=count_movie_to_upgrade)
|
|
|
|
@ -1488,8 +1516,13 @@ def upgrade_subtitles():
|
|
|
|
|
history_log_movie(3, movie['radarrId'], message, path, language_code, provider, score, subs_id, subs_path)
|
|
|
|
|
send_notifications_movie(movie['radarrId'], message)
|
|
|
|
|
|
|
|
|
|
show_progress(id='upgrade_movies_progress',
|
|
|
|
|
header='Upgrading movies subtitles...',
|
|
|
|
|
name='Completed successfully',
|
|
|
|
|
value=count_movie_to_upgrade,
|
|
|
|
|
count=count_movie_to_upgrade)
|
|
|
|
|
|
|
|
|
|
hide_progress(id='upgrade_movies_progress')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
logging.info('BAZARR Finished searching for Subtitles to upgrade. Check History for more information.')
|
|
|
|
|
|
|
|
|
|