Fix for audio language profiles.

This commit is contained in:
Louis Vézina 2019-09-09 13:14:27 -04:00
parent d704686cd5
commit 859bc90662
1 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ def update_series():
'overview': overview,
'poster': poster,
'fanart': fanart,
'audio_language': profile_id_to_language(show['qualityProfileId'], audio_profiles),
'audio_language': profile_id_to_language((show['qualityProfileId'] if get_sonarr_version().startswith('2') else show['languageProfileId']), audio_profiles),
'sort_title': show['sortTitle'],
'year': show['year'],
'alternate_titles': alternateTitles,
@ -113,7 +113,7 @@ def update_series():
'overview': overview,
'poster': poster,
'fanart': fanart,
'audio_language': profile_id_to_language(show['qualityProfileId'], audio_profiles),
'audio_language': profile_id_to_language((show['qualityProfileId'] if get_sonarr_version().startswith('2') else show['languageProfileId']), audio_profiles),
'sort_title': show['sortTitle'],
'year': show['year'],
'alternate_title': alternateTitles})