mirror of
https://github.com/morpheus65535/bazarr
synced 2025-02-23 14:31:06 +00:00
Added error logging when trying to determine malformed audio track languages. #2250
This commit is contained in:
parent
e7703ca5a0
commit
81159a0978
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue