pull/1102/head^2
Louis Vézina 4 years ago
parent ef6f3d30f8
commit d15173c1ea

@ -148,6 +148,12 @@ def update_movies():
audio_language = None audio_language = None
if radarr_version.startswith('0'): if radarr_version.startswith('0'):
if 'mediaInfo' in movie['movieFile']:
if 'audioLanguages' in movie['movieFile']['mediaInfo']:
audio_language_list = movie['movieFile']['mediaInfo']['audioLanguages'].split('/')
if len(audio_language_list):
audio_language = audio_language_list[0].strip()
if not audio_language:
audio_language = profile_id_to_language(movie['qualityProfileId'], audio_profiles) audio_language = profile_id_to_language(movie['qualityProfileId'], audio_profiles)
else: else:
if 'languages' in movie['movieFile'] and len(movie['movieFile']['languages']): if 'languages' in movie['movieFile'] and len(movie['movieFile']['languages']):

Loading…
Cancel
Save