mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-01-08 15:57:36 +08:00
Fixed improper profile ID value preventing listing of series and movies. #2043
This commit is contained in:
parent
b0f743767b
commit
cf4571ba86
1 changed files with 8 additions and 0 deletions
|
@ -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…
Reference in a new issue