From 74fc9fd470868ed2a07714392d1cb3a8962908db Mon Sep 17 00:00:00 2001 From: sigma67 Date: Mon, 18 May 2020 16:58:02 +0200 Subject: [PATCH] Don't return deleted songs in playlists --- ytmusicapi/parsers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ytmusicapi/parsers.py b/ytmusicapi/parsers.py index 6939539..1f3c715 100644 --- a/ytmusicapi/parsers.py +++ b/ytmusicapi/parsers.py @@ -117,6 +117,8 @@ def parse_playlist_items(results, owned=False): data, PLAY_BUTTON)['playNavigationEndpoint']['watchEndpoint']['videoId'] title = get_item_text(data, 0) + if title == 'Song deleted': + continue artists = parse_song_artists(data, 1)