search: fix missing artists when albums filter is set
This commit is contained in:
parent
9a87990055
commit
40e5650de3
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ def parse_top_result(data, search_result_types):
|
||||||
|
|
||||||
|
|
||||||
def parse_search_result(data, search_result_types, result_type, category):
|
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}
|
search_result = {'category': category}
|
||||||
video_type = nav(data, PLAY_BUTTON + ['playNavigationEndpoint'] + NAVIGATION_VIDEO_TYPE, True)
|
video_type = nav(data, PLAY_BUTTON + ['playNavigationEndpoint'] + NAVIGATION_VIDEO_TYPE, True)
|
||||||
if not result_type and video_type:
|
if not result_type and video_type:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue