Fix for missing language name from Radarr v3.

This commit is contained in:
Louis Vézina 2020-08-18 13:20:45 -04:00
parent 55cff62139
commit f740231e64
1 changed files with 2 additions and 1 deletions

View File

@ -151,7 +151,8 @@ def update_movies():
audio_language = profile_id_to_language(movie['qualityProfileId'], audio_profiles)
else:
if len(movie['movieFile']['languages']):
audio_language = movie['movieFile']['languages'][0]['name']
if 'name' in movie['movieFile']['languages'][0]:
audio_language = movie['movieFile']['languages'][0]['name']
tags = [d['label'] for d in tagsDict if d['id'] in movie['tags']]