projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ab7c9e
)
[mpora] Fix extraction
author
Sergey M․
<dstftw@gmail.com>
Thu, 26 Feb 2015 15:10:49 +0000
(21:10 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 26 Feb 2015 15:10:49 +0000
(21:10 +0600)
youtube_dl/extractor/mpora.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/mpora.py
b/youtube_dl/extractor/mpora.py
index 6db3c67a5a471d9cd850ad3bd828a9e2478c00e3..a07d28928617acc2ad280d41c990a17fdfdc33f0 100644
(file)
--- 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')