]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[mpora] Fix extraction
authorSergey M․ <dstftw@gmail.com>
Thu, 26 Feb 2015 15:10:49 +0000 (21:10 +0600)
committerSergey M․ <dstftw@gmail.com>
Thu, 26 Feb 2015 15:10:49 +0000 (21:10 +0600)
youtube_dl/extractor/mpora.py

index 6db3c67a5a471d9cd850ad3bd828a9e2478c00e3..a07d28928617acc2ad280d41c990a17fdfdc33f0 100644 (file)
@@ -25,7 +25,9 @@ class MporaIE(InfoExtractor):
         webpage = self._download_webpage(url, video_id)
 
         data_json = self._search_regex(
-            r"new FM\.Player\('[^']+',\s*(\{.*?)\).player;", webpage, 'json')
+            [r"new FM\.Player\('[^']+',\s*(\{.*?)\).player;",
+             r"new\s+FM\.Kaltura\.Player\('[^']+'\s*,\s*({.+?})\);"],
+            webpage, 'json')
         data = self._parse_json(data_json, video_id)
 
         uploader = data['info_overlay'].get('username')