Fix for missing language name from Radarr v3.

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

@ -151,6 +151,7 @@ def update_movies():
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 len(movie['movieFile']['languages']):
if 'name' in movie['movieFile']['languages'][0]:
audio_language = movie['movieFile']['languages'][0]['name'] audio_language = movie['movieFile']['languages'][0]['name']
tags = [d['label'] for d in tagsDict if d['id'] in movie['tags']] tags = [d['label'] for d in tagsDict if d['id'] in movie['tags']]

Loading…
Cancel
Save