From ef06ab26265056a4b8073c988f4a3d5bb9663ccc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=3D=3FUTF-8=3Fq=3FSergey=3D20M=3DE2=3D80=3DA4=3F=3D?= Date: Sat, 20 Mar 2021 20:40:37 +0100 Subject: [PATCH] [yandexmusic] Add support for music.yandex.com (closes #27425) --- haruhi_dl/extractor/yandexmusic.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/haruhi_dl/extractor/yandexmusic.py b/haruhi_dl/extractor/yandexmusic.py index 9cebbd182..8c11d873f 100644 --- a/haruhi_dl/extractor/yandexmusic.py +++ b/haruhi_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):