Update get_artist_albums and get_user_playlists to work with new YTMusic update (closes #160)

Overall code quality improved through more consistent usage of nav() shortcuts
This commit is contained in:
sigma67 2021-01-28 15:38:52 +01:00
commit eee9d38f55
No known key found for this signature in database
GPG key ID: 1545A01D4474BAF0
6 changed files with 41 additions and 88 deletions

View file

@ -2,8 +2,10 @@
TAB_CONTENT = ['tabs', 0, 'tabRenderer', 'content']
SINGLE_COLUMN_TAB = ['contents', 'singleColumnBrowseResultsRenderer'] + TAB_CONTENT
SECTION_LIST = ['sectionListRenderer', 'contents']
SECTION_LIST_ITEM = ['sectionListRenderer', 'contents', 0]
ITEM_SECTION = ['itemSectionRenderer', 'contents', 0]
MUSIC_SHELF = [0, 'musicShelfRenderer']
MUSIC_SHELF = ['musicShelfRenderer']
GRID_ITEMS = ['gridRenderer', 'items']
MENU = ['menu', 'menuRenderer']
MENU_ITEMS = MENU + ['items']
MENU_LIKE_STATUS = MENU + ['topLevelButtons', 0, 'likeButtonRenderer', 'likeStatus']