about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2014-06-15 11:08:24 +0200
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2014-06-15 11:08:24 +0200
commita013eba65f22fe45a7a71a6d3c81125f1004a3ff (patch)
treefdafa10b6582fc4c7570158105737043362b577a
parent36755d40b49f631c75d4112f4210b4668ccf5ef2 (diff)
downloadyoutube-dl-a013eba65f22fe45a7a71a6d3c81125f1004a3ff.tar.gz
youtube-dl-a013eba65f22fe45a7a71a6d3c81125f1004a3ff.tar.xz
youtube-dl-a013eba65f22fe45a7a71a6d3c81125f1004a3ff.zip
[brightcove] Improve the 'experienceJSON' regex (#3081)
One of the strings may contain ';', we would get an invalid json string.
-rw-r--r--youtube_dl/extractor/brightcove.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/brightcove.py b/youtube_dl/extractor/brightcove.py
index 3c02c297a..6b98bd278 100644
--- a/youtube_dl/extractor/brightcove.py
+++ b/youtube_dl/extractor/brightcove.py
@@ -187,7 +187,7 @@ class BrightcoveIE(InfoExtractor):
         webpage = self._download_webpage(req, video_id)
 
         self.report_extraction(video_id)
-        info = self._search_regex(r'var experienceJSON = ({.*?});', webpage, 'json')
+        info = self._search_regex(r'var experienceJSON = ({.*});', webpage, 'json')
         info = json.loads(info)['data']
         video_info = info['programmedContent']['videoPlayer']['mediaDTO']
         video_info['_youtubedl_adServerURL'] = info.get('adServerURL')