|
|
|
@ -446,6 +446,8 @@ def list_missing_subtitles_movies(no=None, send_event=True):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def series_full_scan_subtitles():
|
|
|
|
|
use_ffprobe_cache = settings.sonarr.getboolean('use_ffprobe_cache')
|
|
|
|
|
|
|
|
|
|
episodes = TableEpisodes.select(TableEpisodes.path).dicts()
|
|
|
|
|
|
|
|
|
|
count_episodes = len(episodes)
|
|
|
|
@ -456,7 +458,7 @@ def series_full_scan_subtitles():
|
|
|
|
|
name='Episodes subtitles',
|
|
|
|
|
value=i,
|
|
|
|
|
count=count_episodes)
|
|
|
|
|
store_subtitles(episode['path'], path_mappings.path_replace(episode['path']))
|
|
|
|
|
store_subtitles(episode['path'], path_mappings.path_replace(episode['path']), use_cache=use_ffprobe_cache)
|
|
|
|
|
|
|
|
|
|
hide_progress(id='episodes_disk_scan')
|
|
|
|
|
|
|
|
|
@ -464,6 +466,8 @@ def series_full_scan_subtitles():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def movies_full_scan_subtitles():
|
|
|
|
|
use_ffprobe_cache = settings.radarr.getboolean('use_ffprobe_cache')
|
|
|
|
|
|
|
|
|
|
movies = TableMovies.select(TableMovies.path).dicts()
|
|
|
|
|
|
|
|
|
|
count_movies = len(movies)
|
|
|
|
@ -474,7 +478,8 @@ def movies_full_scan_subtitles():
|
|
|
|
|
name='Movies subtitles',
|
|
|
|
|
value=i,
|
|
|
|
|
count=count_movies)
|
|
|
|
|
store_subtitles_movie(movie['path'], path_mappings.path_replace_movie(movie['path']))
|
|
|
|
|
store_subtitles_movie(movie['path'], path_mappings.path_replace_movie(movie['path']),
|
|
|
|
|
use_cache=use_ffprobe_cache)
|
|
|
|
|
|
|
|
|
|
hide_progress(id='movies_disk_scan')
|
|
|
|
|
|
|
|
|
|