Fixed improper profile ID value preventing listing of series and movies. #2043

pull/2045/head v1.1.5-beta.6
morpheus65535 2 years ago
parent b0f743767b
commit cf4571ba86

@ -76,6 +76,10 @@ def postprocessSeries(item):
if 'audio_language' in item and item['audio_language'] is not None:
item['audio_language'] = get_audio_profile_languages(series_id=item['sonarrSeriesId'])
# Make sure profileId is a valid None value
if 'profileId' in item and item['profileId'] in None_Keys:
item['profileId'] = None
if 'alternateTitles' in item:
if item['alternateTitles'] is None:
item['alternativeTitles'] = []
@ -163,6 +167,10 @@ def postprocessMovie(item):
if 'audio_language' in item and item['audio_language'] is not None:
item['audio_language'] = get_audio_profile_languages(movie_id=item['radarrId'])
# Make sure profileId is a valid None value
if 'profileId' in item and item['profileId'] in None_Keys:
item['profileId'] = None
# Parse alternate titles
if 'alternativeTitles' in item:
if item['alternativeTitles'] is None:

Loading…
Cancel
Save