]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[bandcamp:album] Make path optional (Closes #4461)
authorSergey M․ <dstftw@gmail.com>
Sat, 13 Dec 2014 20:00:54 +0000 (02:00 +0600)
committerSergey M․ <dstftw@gmail.com>
Sat, 13 Dec 2014 20:00:54 +0000 (02:00 +0600)
youtube_dl/extractor/bandcamp.py

index 9fb770cb1562f6efbe004d4b1689bf3aa1eab8d4..bcb2821cd2b78fdd36b279be0e25aebb9084095d 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',
@@ -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):