search: don't return empty dict if browseid is missing

This commit is contained in:
sigma67 2023-04-07 21:12:15 +02:00
commit defb621407
No known key found for this signature in database
GPG key ID: 1C314227DF0103D0

View file

@ -126,8 +126,6 @@ def parse_search_result(data, search_result_types, result_type, category):
if result_type in ['artist', 'album', 'playlist']:
search_result['browseId'] = nav(data, NAVIGATION_BROWSE_ID, True)
if not search_result['browseId']:
return {}
if result_type in ['song', 'album']:
search_result['isExplicit'] = nav(data, BADGE_LABEL, True) is not None