Another fix for Radarr v3.

pull/1096/head
Louis Vézina 4 years ago
parent f740231e64
commit d95dc2b823

@ -150,7 +150,7 @@ def update_movies():
if radarr_version.startswith('0'): if radarr_version.startswith('0'):
audio_language = profile_id_to_language(movie['qualityProfileId'], audio_profiles) audio_language = profile_id_to_language(movie['qualityProfileId'], audio_profiles)
else: else:
if len(movie['movieFile']['languages']): if 'language' in movie['movieFile'] and len(movie['movieFile']['languages']):
if 'name' in movie['movieFile']['languages'][0]: if 'name' in movie['movieFile']['languages'][0]:
audio_language = movie['movieFile']['languages'][0]['name'] audio_language = movie['movieFile']['languages'][0]['name']

Loading…
Cancel
Save