1
0
Fork 0
mirror of https://github.com/blackjack4494/yt-dlc.git synced 2024-12-23 08:17:00 +00:00

[yandexmusic] Skip removed tracks (#6666)

This commit is contained in:
Sergey M․ 2015-08-25 23:29:02 +06:00
parent ebbf078c7d
commit 6d53cdd6ce

View file

@ -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):