search: add browseId to album top results (closes #448)

This commit is contained in:
sigma67 2023-10-06 21:26:09 +02:00
commit 05a5fb8153
No known key found for this signature in database
GPG key ID: 1C314227DF0103D0

View file

@ -39,6 +39,9 @@ def parse_top_result(data, search_result_types):
song_info = parse_song_runs(runs)
search_result.update(song_info)
if result_type in ['album']:
search_result['browseId'] = nav(data, NAVIGATION_BROWSE_ID, True)
search_result['thumbnails'] = nav(data, THUMBNAILS, True)
return search_result