get_user_playlists: no longer errors on empty profile

This commit is contained in:
sigma67 2024-01-02 21:52:36 +01:00 • committed by sigma67
commit d1ac87ce6e

View file

@ -340,7 +340,10 @@ class BrowsingMixin(MixinProtocol):
endpoint = "browse"
body = {"browseId": channelId, "params": params}
response = self._send_request(endpoint, body)
results = nav(response, SINGLE_COLUMN_TAB + SECTION_LIST_ITEM + GRID_ITEMS)
results = nav(response, SINGLE_COLUMN_TAB + SECTION_LIST_ITEM + GRID_ITEMS, True)
if not results:
return []
user_playlists = parse_content_list(results, parse_playlist)
return user_playlists