logo

youtube-dl

[mirror] Download/Watch videos from video hostersgit clone https://hacktivis.me/git/mirror/youtube-dl.git
commit: ab62bc583896f0f8e56bbb7b8ac72e84f7102a87
parent bc87ba842417081f34d112ca94bbb23165dc8633
Author: Sergey M․ <dstftw@gmail.com>
Date:   Mon, 14 Dec 2020 12:48:12 +0700

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

Diffstat:

Myoutube_dl/extractor/yandexmusic.py5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 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\.(?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):