From ab62bc583896f0f8e56bbb7b8ac72e84f7102a87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergey=20M=E2=80=A4?= Date: Mon, 14 Dec 2020 12:48:12 +0700 Subject: [PATCH] [yandexmusic] Add support for music.yandex.com (closes #27425) --- youtube_dl/extractor/yandexmusic.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/yandexmusic.py b/youtube_dl/extractor/yandexmusic.py index 1d968454a..b64632836 100644 --- a/youtube_dl/extractor/yandexmusic.py +++ b/youtube_dl/extractor/yandexmusic.py @@ -15,7 +15,7 @@ from ..utils import ( class YandexMusicBaseIE(InfoExtractor): - _VALID_URL_BASE = r'https?://music\.yandex\.(?Pru|kz|ua|by)' + _VALID_URL_BASE = r'https?://music\.yandex\.(?Pru|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):