Browse Source

[yandexmusic] Skip removed tracks (#6666)

totalwebcasting
Sergey M․ 9 years ago
parent
commit
6d53cdd6ce
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/extractor/yandexmusic.py

+ 1
- 1
youtube_dl/extractor/yandexmusic.py 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):


Loading…
Cancel
Save