[bandcamp:album] Fix title extraction (Fixes #4721)
authorPhilipp Hagemeister <phihag@phihag.de>
Fri, 16 Jan 2015 13:20:25 +0000 (14:20 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Fri, 16 Jan 2015 13:20:25 +0000 (14:20 +0100)
youtube_dl/extractor/bandcamp.py

index b45d68a61416b66e2ea8e9585d8339c62da46000..aea0263d6b681ba33e66d20cc1a247213299540f 100644 (file)
@@ -161,7 +161,8 @@ class BandcampAlbumIE(InfoExtractor):
         entries = [
             self.url_result(compat_urlparse.urljoin(url, t_path), ie=BandcampIE.ie_key())
             for t_path in tracks_paths]
-        title = self._search_regex(r'album_title : "(.*?)"', webpage, 'title')
+        title = self._search_regex(
+            r'album_title\s*:\s*"(.*?)"', webpage, 'title', fatal=False)
         return {
             '_type': 'playlist',
             'id': playlist_id,