Fix for audio language profiles.

This commit is contained in:
morpheus65535 2019-09-09 13:16:18 -04:00 committed by GitHub
parent 3d2137e94e
commit 2e5b0b4902
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -87,12 +87,14 @@ def update_series():
if serie_default_enabled is True:
series_to_add.append((show["title"], show["path"], show["tvdbId"], serie_default_language,
serie_default_hi, show["id"], overview, poster, fanart,
profile_id_to_language(show['qualityProfileId'], audio_profiles), show['sortTitle'],
profile_id_to_language(
(show['qualityProfileId'] if get_sonarr_version().startswith('2') else show['languageProfileId']), audio_profiles), show['sortTitle'],
show['year'], alternateTitles, serie_default_forced))
else:
series_to_add.append((show["title"], show["path"], show["tvdbId"], show["tvdbId"],
show["tvdbId"], show["id"], overview, poster, fanart,
profile_id_to_language(show['qualityProfileId'], audio_profiles), show['sortTitle'],
profile_id_to_language(
(show['qualityProfileId'] if get_sonarr_version().startswith('2') else show['languageProfileId']), audio_profiles), show['sortTitle'],
show['year'], alternateTitles, show["id"]))
# Update or insert series in DB