Singles still use the grid renderer, while albums use the carousel now
This commit is contained in:
parent
6c6f19df24
commit
01f38878dc
1 changed files with 5 additions and 1 deletions
|
|
@ -252,7 +252,11 @@ class BrowsingMixin:
|
||||||
body = {"browseId": channelId, "params": params}
|
body = {"browseId": channelId, "params": params}
|
||||||
endpoint = 'browse'
|
endpoint = 'browse'
|
||||||
response = self._send_request(endpoint, body)
|
response = self._send_request(endpoint, body)
|
||||||
results = nav(response, SINGLE_COLUMN_TAB + SECTION_LIST_ITEM + CAROUSEL_CONTENTS)
|
results = nav(response, SINGLE_COLUMN_TAB + SECTION_LIST_ITEM)
|
||||||
|
if 'gridRenderer' in results:
|
||||||
|
results = nav(results, GRID_ITEMS)
|
||||||
|
else:
|
||||||
|
results = nav(results, CAROUSEL_CONTENTS)
|
||||||
albums = parse_albums(results)
|
albums = parse_albums(results)
|
||||||
|
|
||||||
return albums
|
return albums
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue