summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2023-09-21 17:51:28 -0400
committermorpheus65535 <[email protected]>2023-09-21 17:51:28 -0400
commit81159a09789aa0251c5a6935ff06ae9e886e7a05 (patch)
tree8762348628aebd9a393ca2a2b4971d73e101331c
parente7703ca5a08f6a25590bd9d678f844857c41a108 (diff)
downloadbazarr-81159a09789aa0251c5a6935ff06ae9e886e7a05.tar.gz
bazarr-81159a09789aa0251c5a6935ff06ae9e886e7a05.zip
Added error logging when trying to determine malformed audio track languages. #2250v1.3.1-beta.2
-rw-r--r--bazarr/utilities/video_analyzer.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/bazarr/utilities/video_analyzer.py b/bazarr/utilities/video_analyzer.py
index 69cab1523..c1cde1fb3 100644
--- a/bazarr/utilities/video_analyzer.py
+++ b/bazarr/utilities/video_analyzer.py
@@ -93,6 +93,11 @@ def embedded_audio_reader(file, file_size, episode_file_id=None, movie_file_id=N
audio_list.append(None)
continue
+ if isinstance(detected_language['language'], str):
+ logging.error(f"Cannot identify audio track language for this file: {file}. Value detected is "
+ f"{detected_language['language']}.")
+ continue
+
alpha3 = _handle_alpha3(detected_language)
language = language_from_alpha3(alpha3)