Browse Source

[bandcamp:album] Do not match plain Bandcamp URLs (#4461)

The _VALID_URL 1fa174692aae06406c9524fec392a131f10c68fe is to broad, since it matches everything beginning with bandcamp.com.
Philipp Hagemeister 10 years ago
parent
commit
4d144be8b0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      youtube_dl/extractor/bandcamp.py

+ 1 - 1
youtube_dl/extractor/bandcamp.py

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