From: Sergey M․ Date: Mon, 14 Dec 2020 05:48:12 +0000 (+0700) Subject: [yandexmusic] Add support for music.yandex.com (closes #27425) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=ab62bc583896f0f8e56bbb7b8ac72e84f7102a87;p=youtube-dl [yandexmusic] Add support for music.yandex.com (closes #27425) --- 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):