search: fix missing artists when albums filter is set

This commit is contained in:
sigma67 2023-10-03 17:09:49 +02:00
commit 40e5650de3
No known key found for this signature in database
GPG key ID: 1C314227DF0103D0

View file

@ -44,7 +44,7 @@ def parse_top_result(data, search_result_types):
def parse_search_result(data, search_result_types, result_type, category):
default_offset = (not result_type) * 2
default_offset = (not result_type or result_type == "album") * 2
search_result = {'category': category}
video_type = nav(data, PLAY_BUTTON + ['playNavigationEndpoint'] + NAVIGATION_VIDEO_TYPE, True)
if not result_type and video_type: