Skip to content

Commit

Permalink
refactor: simplify songlist parsing in LibraryMixin
Browse files Browse the repository at this point in the history
  • Loading branch information
luisignaciocc committed Dec 14, 2024
1 parent 9ce284a commit 2947aa9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ytmusicapi/mixins/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,7 @@ def get_history(self) -> list[dict]:
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)
Expand Down

0 comments on commit 2947aa9

Please sign in to comment.