From: Philipp Hagemeister Date: Sat, 13 Dec 2014 22:50:04 +0000 (+0100) Subject: [bandcamp:album] Do not match plain Bandcamp URLs (#4461) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=4d144be8b0b93c052648e8137ffd961deee4516e;p=youtube-dl [bandcamp:album] Do not match plain Bandcamp URLs (#4461) The _VALID_URL 1fa174692aae06406c9524fec392a131f10c68fe is to broad, since it matches everything beginning with bandcamp.com. --- diff --git a/youtube_dl/extractor/bandcamp.py b/youtube_dl/extractor/bandcamp.py index bcb2821cd..b45d68a61 100644 --- a/youtube_dl/extractor/bandcamp.py +++ b/youtube_dl/extractor/bandcamp.py @@ -106,7 +106,7 @@ class BandcampIE(InfoExtractor): class BandcampAlbumIE(InfoExtractor): IE_NAME = 'Bandcamp:album' - _VALID_URL = r'https?://(?:(?P[^.]+)\.)?bandcamp\.com(?:/album/(?P[^?#]+))?' + _VALID_URL = r'https?://(?:(?P<subdomain>[^.]+)\.)?bandcamp\.com(?:/album/(?P<title>[^?#]+)|/?(?:$|[?#]))' _TESTS = [{ 'url': 'http://blazo.bandcamp.com/album/jazz-format-mixtape-vol-1',