From 2947aa9851078c53e6d7c8bc1ac616d5c61f7536 Mon Sep 17 00:00:00 2001 From: Luis Ignacio Date: Fri, 13 Dec 2024 21:19:06 -0300 Subject: [PATCH] refactor: simplify songlist parsing in LibraryMixin --- ytmusicapi/mixins/library.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ytmusicapi/mixins/library.py b/ytmusicapi/mixins/library.py index 4cdbc5c0..674cb080 100644 --- a/ytmusicapi/mixins/library.py +++ b/ytmusicapi/mixins/library.py @@ -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)