Skip to content

Commit

Permalink
fix search error if result thumbnail is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
sigma67 committed Nov 29, 2021
1 parent 71b6479 commit eb0293f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ytmusicapi/parsers/browsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def parse_search_results(self, results, resultType=None, category=None):
if resultType in ['song', 'album']:
search_result['isExplicit'] = nav(data, BADGE_LABEL, True) == 'Explicit'

search_result['thumbnails'] = nav(data, THUMBNAILS)
search_result['thumbnails'] = nav(data, THUMBNAILS, True)
search_results.append(search_result)

return search_results
Expand Down

0 comments on commit eb0293f

Please sign in to comment.