]> git.bitcoin.ninja Git - youtube-dl/commitdiff
RBMARadioIE: fix the extraction of the JSON data
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Thu, 20 Jun 2013 12:37:43 +0000 (14:37 +0200)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Thu, 20 Jun 2013 12:37:43 +0000 (14:37 +0200)
youtube_dl/InfoExtractors.py

index c80a74ef6bb2acdef8be62b8bbcb7d46c2ddc77d..d9c555643dc7ac4e4421f857d494d88e8aeb9183 100755 (executable)
@@ -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)