Browse Source

RBMARadioIE: fix the extraction of the JSON data

Jaime Marquínez Ferrándiz 12 years ago
parent
commit
038a3a1a61
1 changed files with 2 additions and 2 deletions
  1. 2 2
      youtube_dl/InfoExtractors.py

+ 2 - 2
youtube_dl/InfoExtractors.py

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