From 4c173a31f6d6b05d5118eb2d25c16cc336aaf62e Mon Sep 17 00:00:00 2001 From: Khakis Date: Sat, 17 Aug 2024 23:37:43 -0500 Subject: [PATCH] Update prep.py Added the ability to support proper identification of Dubbed/Dual audio for Spanish audio tracks. --- src/prep.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/prep.py b/src/prep.py index e53ae336d..e5e333813 100644 --- a/src/prep.py +++ b/src/prep.py @@ -1480,8 +1480,8 @@ def get_audio_v2(self, mi, meta, bdinfo): # Check for original Language Track if audio_language == meta['original_language'] and "commentary" not in t.get('Title', '').lower(): orig = True - # Catch Chinese / Norwegian variants - variants = ['zh', 'cn', 'cmn', 'no', 'nb'] + # Catch Chinese / Norwegian / Spanish variants + variants = ['zh', 'cn', 'cmn', 'no', 'nb', 'es-419', 'es-ES', 'es'] if audio_language in variants and meta['original_language'] in variants: orig = True # Check for additional, bloated Tracks