From: Quentin Rameau Date: Mon, 20 Apr 2015 04:25:55 +0000 (+0200) Subject: [bandcamp] fix video_id parsing (fixes #4861) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=b524a001d68767298272ef59274c826a6ea6a1b7;p=youtube-dl [bandcamp] fix video_id parsing (fixes #4861) --- diff --git a/youtube_dl/extractor/bandcamp.py b/youtube_dl/extractor/bandcamp.py index 869294967..505877b77 100644 --- a/youtube_dl/extractor/bandcamp.py +++ b/youtube_dl/extractor/bandcamp.py @@ -72,7 +72,7 @@ class BandcampIE(InfoExtractor): download_link = m_download.group(1) video_id = self._search_regex( - r'(?ms)var TralbumData = {.*?id: (?P\d+),?$', + r'(?ms)var TralbumData = .*?[{,]\s*id: (?P\d+),?$', webpage, 'video id') download_webpage = self._download_webpage(download_link, video_id, 'Downloading free downloads page')