mirror of
https://github.com/morpheus65535/bazarr
synced 2025-01-03 05:25:28 +00:00
Fixed usage of path mappings for video_analyzer operations
This commit is contained in:
parent
d59e3e5bc4
commit
55d96b3231
1 changed files with 6 additions and 2 deletions
|
@ -121,7 +121,9 @@ def subtitles_sync_references(subtitles_path, sonarr_episode_id=None, radarr_mov
|
||||||
if not media_data:
|
if not media_data:
|
||||||
return references_dict
|
return references_dict
|
||||||
|
|
||||||
data = parse_video_metadata(media_data.path, media_data.file_size, media_data.episode_file_id, None,
|
mapped_path = path_mappings.path_replace(media_data.path)
|
||||||
|
|
||||||
|
data = parse_video_metadata(mapped_path, media_data.file_size, media_data.episode_file_id, None,
|
||||||
use_cache=True)
|
use_cache=True)
|
||||||
elif radarr_movie_id:
|
elif radarr_movie_id:
|
||||||
media_data = database.execute(
|
media_data = database.execute(
|
||||||
|
@ -132,7 +134,9 @@ def subtitles_sync_references(subtitles_path, sonarr_episode_id=None, radarr_mov
|
||||||
if not media_data:
|
if not media_data:
|
||||||
return references_dict
|
return references_dict
|
||||||
|
|
||||||
data = parse_video_metadata(media_data.path, media_data.file_size, None, media_data.movie_file_id,
|
mapped_path = path_mappings.path_replace_movie(media_data.path)
|
||||||
|
|
||||||
|
data = parse_video_metadata(mapped_path, media_data.file_size, None, media_data.movie_file_id,
|
||||||
use_cache=True)
|
use_cache=True)
|
||||||
|
|
||||||
if not data:
|
if not data:
|
||||||
|
|
Loading…
Reference in a new issue