]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[bandcamp] fix video_id parsing (fixes #4861)
authorQuentin Rameau <quinq@quinq.eu.org>
Mon, 20 Apr 2015 04:25:55 +0000 (06:25 +0200)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Mon, 20 Apr 2015 13:45:57 +0000 (15:45 +0200)
youtube_dl/extractor/bandcamp.py

index 86929496708fccf3bc0febe78cd1e599fda1ab97..505877b773d45b36be31d8dea8a6a1766d72d4ca 100644 (file)
@@ -72,7 +72,7 @@ class BandcampIE(InfoExtractor):
 
         download_link = m_download.group(1)
         video_id = self._search_regex(
-            r'(?ms)var TralbumData = {.*?id: (?P<id>\d+),?$',
+            r'(?ms)var TralbumData = .*?[{,]\s*id: (?P<id>\d+),?$',
             webpage, 'video id')
 
         download_webpage = self._download_webpage(download_link, video_id, 'Downloading free downloads page')