summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSergey M․ <[email protected]>2014-12-14 02:00:54 +0600
committerSergey M․ <[email protected]>2014-12-14 02:00:54 +0600
commit1fa174692aae06406c9524fec392a131f10c68fe (patch)
treed2dba7f9d7267fb74568a99b50ea27a446912576
parent04c95441871775dfdaa0ea3eeca0a5d23f270f2c (diff)
downloadyoutube-dl-1fa174692aae06406c9524fec392a131f10c68fe.tar.gz
youtube-dl-1fa174692aae06406c9524fec392a131f10c68fe.zip
[bandcamp:album] Make path optional (Closes #4461)
-rw-r--r--youtube_dl/extractor/bandcamp.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/youtube_dl/extractor/bandcamp.py b/youtube_dl/extractor/bandcamp.py
index 9fb770cb1..bcb2821cd 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',
@@ -141,6 +141,12 @@ class BandcampAlbumIE(InfoExtractor):
'title': 'Hierophany of the Open Grave',
},
'playlist_mincount': 9,
+ }, {
+ 'url': 'http://dotscale.bandcamp.com',
+ 'info_dict': {
+ 'title': 'Loom',
+ },
+ 'playlist_mincount': 7,
}]
def _real_extract(self, url):