Skip to content

Commit

Permalink
search: don't return empty dict if browseid is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
sigma67 committed Apr 7, 2023
1 parent 4251896 commit defb621
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ytmusicapi/parsers/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit defb621

Please sign in to comment.