1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-12-31 00:42:58 +08:00

[yandexmusic:album] Improve _VALID_URL to avoid matching tracks urls

This commit is contained in:
Jaime Marquínez Ferrándiz 2015-03-09 18:17:22 +01:00
parent 937daef4a7
commit f5d8f58a17

View File

@ -67,7 +67,7 @@ class YandexMusicTrackIE(YandexMusicBaseIE):
class YandexMusicAlbumIE(YandexMusicBaseIE):
IE_NAME = 'yandexmusic:album'
IE_DESC = 'Яндекс.Музыка - Альбом'
_VALID_URL = r'https?://music\.yandex\.ru/album/(?P<id>\d+)'
_VALID_URL = r'https?://music\.yandex\.ru/album/(?P<id>\d+)/?(\?|$)'
_TEST = {
'url': 'http://music.yandex.ru/album/540508',