Explorar o código

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

Jaime Marquínez Ferrándiz %!s(int64=10) %!d(string=hai) anos
pai
achega
f5d8f58a17
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      youtube_dl/extractor/yandexmusic.py

+ 1 - 1
youtube_dl/extractor/yandexmusic.py

@@ -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',