From eef807f3e60303cd29e45606f8943b759434d751 Mon Sep 17 00:00:00 2001 From: sigma67 Date: Sun, 4 Feb 2024 13:41:58 +0100 Subject: [PATCH] get_playlist: fix albums on tracks --- ytmusicapi/parsers/playlists.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/ytmusicapi/parsers/playlists.py b/ytmusicapi/parsers/playlists.py index bf0182c7..13d573e5 100644 --- a/ytmusicapi/parsers/playlists.py +++ b/ytmusicapi/parsers/playlists.py @@ -46,13 +46,9 @@ def parse_playlist_items(results, menu_entries: Optional[List[List]] = None, is_ artists = parse_song_artists(data, 1) - album = parse_song_album(data, 2) + album = parse_song_album(data, 3) - views = None - if album and album["id"] is None: - # views currently only present on albums and formatting is localization-dependent -> no parsing - if (views := (get_item_text(data, 2))) is not None: - album = None + views = get_item_text(data, 2) duration = None if "fixedColumns" in data: