refactor: simplify songlist parsing in LibraryMixin
This commit is contained in:
parent
9ce284a7ea
commit
0d39603ba5
1 changed files with 1 additions and 2 deletions
|
|
@ -299,8 +299,7 @@ class LibraryMixin(MixinProtocol):
|
|||
if not data:
|
||||
error = nav(content, ["musicNotifierShelfRenderer", *TITLE], True)
|
||||
raise YTMusicServerError(error)
|
||||
menu_entries = [[-1, *MENU_SERVICE, *FEEDBACK_TOKEN]]
|
||||
songlist = parse_playlist_items(data, menu_entries)
|
||||
songlist = parse_playlist_items(data)
|
||||
for song in songlist:
|
||||
song["played"] = nav(content["musicShelfRenderer"], TITLE_TEXT)
|
||||
songs.extend(songlist)
|
||||
|
|
|
|||
Loading…
Reference in a new issue