summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPhilipp Hagemeister <[email protected]>2014-12-13 23:50:04 +0100
committerPhilipp Hagemeister <[email protected]>2014-12-13 23:50:06 +0100
commit4d144be8b0b93c052648e8137ffd961deee4516e (patch)
treea14a1d236e260ab094edd58c114688cccd3c77bc
parent2128b696b87ed1b44aac0ee31deb94b0b777f7db (diff)
downloadyoutube-dl-4d144be8b0b93c052648e8137ffd961deee4516e.tar.gz
youtube-dl-4d144be8b0b93c052648e8137ffd961deee4516e.zip
[bandcamp:album] Do not match plain Bandcamp URLs (#4461)
The _VALID_URL 1fa174692aae06406c9524fec392a131f10c68fe is to broad, since it matches everything beginning with bandcamp.com.
-rw-r--r--youtube_dl/extractor/bandcamp.py2
1 files changed, 1 insertions, 1 deletions
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<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',