mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-28 08:31:36 +00:00
[yandexmusic] Skip removed tracks (#6666)
This commit is contained in:
parent
ebbf078c7d
commit
6d53cdd6ce
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ def _build_playlist(self, tracks):
|
|||
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…
Reference in a new issue