RBMARadioIE: fix the extraction of the JSON data

This commit is contained in:
Jaime Marquínez Ferrándiz 2013-06-20 14:37:43 +02:00
parent 587c68b2cd
commit 038a3a1a61

View File

@ -3488,8 +3488,8 @@ def _real_extract(self, url):
webpage = self._download_webpage(url, video_id) webpage = self._download_webpage(url, video_id)
json_data = self._search_regex(r'<script>window.gon = {.*?};gon\.show=(.+?);</script>', json_data = self._search_regex(r'window\.gon.*?gon\.show=(.+?);$',
webpage, u'json data') webpage, u'json data', flags=re.MULTILINE)
try: try:
data = json.loads(json_data) data = json.loads(json_data)