mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-23 00:54:31 +01:00
[yandexmusic] Skip removed tracks (#6666)
This commit is contained in:
parent
ebbf078c7d
commit
6d53cdd6ce
@ -67,7 +67,7 @@ class YandexMusicPlaylistBaseIE(InfoExtractor):
|
|||||||
return [
|
return [
|
||||||
self.url_result(
|
self.url_result(
|
||||||
'http://music.yandex.ru/album/%s/track/%s' % (track['albums'][0]['id'], track['id']))
|
'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):
|
class YandexMusicAlbumIE(YandexMusicPlaylistBaseIE):
|
||||||
|
Loading…
Reference in New Issue
Block a user