mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-28 21:22:13 +00:00
[yandexmusic] Add support for music.yandex.com (closes #27425)
This commit is contained in:
parent
bc87ba8424
commit
ab62bc5838
1 changed files with 4 additions and 1 deletions
|
@ -15,7 +15,7 @@ from ..utils import (
|
||||||
|
|
||||||
|
|
||||||
class YandexMusicBaseIE(InfoExtractor):
|
class YandexMusicBaseIE(InfoExtractor):
|
||||||
_VALID_URL_BASE = r'https?://music\.yandex\.(?P<tld>ru|kz|ua|by)'
|
_VALID_URL_BASE = r'https?://music\.yandex\.(?P<tld>ru|kz|ua|by|com)'
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _handle_error(response):
|
def _handle_error(response):
|
||||||
|
@ -102,6 +102,9 @@ class YandexMusicTrackIE(YandexMusicBaseIE):
|
||||||
'track_number': 9,
|
'track_number': 9,
|
||||||
},
|
},
|
||||||
# 'skip': 'Travis CI servers blocked by YandexMusic',
|
# 'skip': 'Travis CI servers blocked by YandexMusic',
|
||||||
|
}, {
|
||||||
|
'url': 'http://music.yandex.com/album/540508/track/4878838',
|
||||||
|
'only_matching': True,
|
||||||
}]
|
}]
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
|
|
Loading…
Reference in a new issue