summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorThomas Anderson <[email protected]>2024-06-18 05:44:13 -0400
committerGitHub <[email protected]>2024-06-18 05:44:13 -0400
commit55d96b3231ba78e2a5c0ae8a7df103b53f42b6c5 (patch)
tree2336b6a1225321bfb2ad9855e67235533559577d
parentd59e3e5bc4224b379babccbbacf1edc0831b3952 (diff)
downloadbazarr-55d96b3231ba78e2a5c0ae8a7df103b53f42b6c5.tar.gz
bazarr-55d96b3231ba78e2a5c0ae8a7df103b53f42b6c5.zip
Fixed usage of path mappings for video_analyzer operations
-rw-r--r--bazarr/utilities/video_analyzer.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/bazarr/utilities/video_analyzer.py b/bazarr/utilities/video_analyzer.py
index a1ccf319f..bfa75542e 100644
--- a/bazarr/utilities/video_analyzer.py
+++ b/bazarr/utilities/video_analyzer.py
@@ -121,7 +121,9 @@ def subtitles_sync_references(subtitles_path, sonarr_episode_id=None, radarr_mov
if not media_data:
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)
elif radarr_movie_id:
media_data = database.execute(
@@ -132,7 +134,9 @@ def subtitles_sync_references(subtitles_path, sonarr_episode_id=None, radarr_mov
if not media_data:
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)
if not data: