aboutsummaryrefslogtreecommitdiffhomepage
path: root/youtube_dl/extractor/mpora.py
diff options
context:
space:
mode:
authorSergey M․ <[email protected]>2015-02-26 21:10:49 +0600
committerSergey M․ <[email protected]>2015-02-26 21:10:49 +0600
commit6317a3e9da42f5d60e514fddcb89eec7f5768294 (patch)
treeedc2fb2fc1c5e59d5468fc8f0119734c0936fb1d /youtube_dl/extractor/mpora.py
parent7ab7c9e93290f575747c1790c4aecf2055227a8d (diff)
downloadyoutube-dl-6317a3e9da42f5d60e514fddcb89eec7f5768294.tar.gz
youtube-dl-6317a3e9da42f5d60e514fddcb89eec7f5768294.zip
[mpora] Fix extraction
Diffstat (limited to 'youtube_dl/extractor/mpora.py')
-rw-r--r--youtube_dl/extractor/mpora.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube_dl/extractor/mpora.py b/youtube_dl/extractor/mpora.py
index 6db3c67a5..a07d28928 100644
--- a/youtube_dl/extractor/mpora.py
+++ b/youtube_dl/extractor/mpora.py
@@ -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')