parent
47214de495
commit
57528ffbdd
1 changed files with 3 additions and 1 deletions
|
|
@ -25,7 +25,9 @@ def parse_album_header(response):
|
|||
# add to library/uploaded
|
||||
menu = nav(header, MENU)
|
||||
toplevel = menu['topLevelButtons']
|
||||
album['audioPlaylistId'] = nav(toplevel, [0, 'buttonRenderer'] + NAVIGATION_WATCH_PLAYLIST_ID)
|
||||
album['audioPlaylistId'] = nav(toplevel, [0, 'buttonRenderer'] + NAVIGATION_WATCH_PLAYLIST_ID, True)
|
||||
if not album['audioPlaylistId']:
|
||||
album['audioPlaylistId'] = nav(toplevel, [0, 'buttonRenderer'] + NAVIGATION_PLAYLIST_ID, True)
|
||||
service = nav(toplevel, [1, 'buttonRenderer', 'defaultServiceEndpoint'], True)
|
||||
if service:
|
||||
album['likeStatus'] = parse_like_status(service)
|
||||
|
|
|
|||
Loading…
Reference in a new issue