From cf4571ba8604fbdda84d1f775b9c6888e06018a2 Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Tue, 24 Jan 2023 22:35:24 -0500 Subject: [PATCH] Fixed improper profile ID value preventing listing of series and movies. #2043 --- bazarr/api/utils.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bazarr/api/utils.py b/bazarr/api/utils.py index 2070285d9..243063262 100644 --- a/bazarr/api/utils.py +++ b/bazarr/api/utils.py @@ -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: