[yandexmusic] Add support for music.yandex.com (closes #27425)

This commit is contained in:
=?UTF-8?q?Sergey=20M=E2=80=A4?= 2021-03-20 20:40:37 +01:00 committed by Lauren Liberda
parent 5403f15eca
commit ef06ab2626

View file

@ -15,7 +15,7 @@ from ..utils import (
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
def _handle_error(response):
@ -102,6 +102,9 @@ class YandexMusicTrackIE(YandexMusicBaseIE):
'track_number': 9,
},
# 'skip': 'Travis CI servers blocked by YandexMusic',
}, {
'url': 'http://music.yandex.com/album/540508/track/4878838',
'only_matching': True,
}]
def _real_extract(self, url):