diff options
author | morpheus65535 <[email protected]> | 2023-01-24 22:35:24 -0500 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2023-01-24 22:35:24 -0500 |
commit | cf4571ba8604fbdda84d1f775b9c6888e06018a2 (patch) | |
tree | 9e31ad1adbd2856a110d9c83861e1b64580cabb2 | |
parent | b0f743767bf907df56c4a5310ab0938bc73f8722 (diff) | |
download | bazarr-1.1.5-beta.6.tar.gz bazarr-1.1.5-beta.6.zip |
Fixed improper profile ID value preventing listing of series and movies. #2043v1.1.5-beta.6
-rw-r--r-- | bazarr/api/utils.py | 8 |
1 files changed, 8 insertions, 0 deletions
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: |