get_user_playlists: no longer errors on empty profile
This commit is contained in:
parent
0cb0a1604b
commit
d1ac87ce6e
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue