From 40e5650de3bfcb7d78b15175c82ee112cef9c87d Mon Sep 17 00:00:00 2001 From: sigma67 Date: Tue, 3 Oct 2023 17:09:49 +0200 Subject: [PATCH] search: fix missing artists when albums filter is set --- ytmusicapi/parsers/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ytmusicapi/parsers/search.py b/ytmusicapi/parsers/search.py index 4ae415c..8a7193a 100644 --- a/ytmusicapi/parsers/search.py +++ b/ytmusicapi/parsers/search.py @@ -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: