diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-08-25 23:29:02 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-08-25 23:29:02 +0600 |
commit | 6d53cdd6ce441dd7bc1d93bf1445f0594cfdffef (patch) | |
tree | 7bea45b6af4ee4eb05898a1456b29f92dcdde3b2 /youtube_dl/extractor/yandexmusic.py | |
parent | ebbf078c7df575903ceb1be53e53533508c79dad (diff) |
[yandexmusic] Skip removed tracks (#6666)
Diffstat (limited to 'youtube_dl/extractor/yandexmusic.py')
-rw-r--r-- | youtube_dl/extractor/yandexmusic.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/yandexmusic.py b/youtube_dl/extractor/yandexmusic.py index 91829be1c..166cbf344 100644 --- a/youtube_dl/extractor/yandexmusic.py +++ b/youtube_dl/extractor/yandexmusic.py @@ -67,7 +67,7 @@ class YandexMusicPlaylistBaseIE(InfoExtractor): return [ self.url_result( 'http://music.yandex.ru/album/%s/track/%s' % (track['albums'][0]['id'], track['id'])) - for track in tracks] + for track in tracks if track.get('albums') and isinstance(track.get('albums'), list)] class YandexMusicAlbumIE(YandexMusicPlaylistBaseIE): |