projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2128b69
)
[bandcamp:album] Do not match plain Bandcamp URLs (#4461)
author
Philipp Hagemeister
<phihag@phihag.de>
Sat, 13 Dec 2014 22:50:04 +0000
(23:50 +0100)
committer
Philipp 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
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/bandcamp.py
b/youtube_dl/extractor/bandcamp.py
index bcb2821cd2b78fdd36b279be0e25aebb9084095d..b45d68a61416b66e2ea8e9585d8339c62da46000 100644
(file)
--- 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',