]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[bandcamp:album] Do not match plain Bandcamp URLs (#4461)
authorPhilipp Hagemeister <phihag@phihag.de>
Sat, 13 Dec 2014 22:50:04 +0000 (23:50 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Sat, 13 Dec 2014 22:50:06 +0000 (23:50 +0100)
The _VALID_URL 1fa174692aae06406c9524fec392a131f10c68fe is to broad, since it matches everything beginning with bandcamp.com.

youtube_dl/extractor/bandcamp.py

index bcb2821cd2b78fdd36b279be0e25aebb9084095d..b45d68a61416b66e2ea8e9585d8339c62da46000 100644 (file)
@@ -106,7 +106,7 @@ class BandcampIE(InfoExtractor):
 
 class BandcampAlbumIE(InfoExtractor):
     IE_NAME = 'Bandcamp:album'
-    _VALID_URL = r'https?://(?:(?P<subdomain>[^.]+)\.)?bandcamp\.com(?:/album/(?P<title>[^?#]+))?'
+    _VALID_URL = r'https?://(?:(?P<subdomain>[^.]+)\.)?bandcamp\.com(?:/album/(?P<title>[^?#]+)|/?(?:$|[?#]))'
 
     _TESTS = [{
         'url': 'http://blazo.bandcamp.com/album/jazz-format-mixtape-vol-1',