about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2013-06-20 14:37:43 +0200
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2013-06-20 14:37:43 +0200
commit038a3a1a614c2d67233f5822ae439da877b797ff (patch)
tree4d27576c22ffd3ce5c35790a90e37d45a50d99ec
parent587c68b2cdef65766d4dc408b04bd67cf8d2daf2 (diff)
downloadyoutube-dl-038a3a1a614c2d67233f5822ae439da877b797ff.tar.gz
youtube-dl-038a3a1a614c2d67233f5822ae439da877b797ff.tar.xz
youtube-dl-038a3a1a614c2d67233f5822ae439da877b797ff.zip
RBMARadioIE: fix the extraction of the JSON data
-rwxr-xr-xyoutube_dl/InfoExtractors.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py
index c80a74ef6..d9c555643 100755
--- a/youtube_dl/InfoExtractors.py
+++ b/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)