Browse Source

[mpora] Fix extraction

totalwebcasting
Sergey M․ 10 years ago
parent
commit
6317a3e9da
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      youtube_dl/extractor/mpora.py

+ 3
- 1
youtube_dl/extractor/mpora.py View File

@ -25,7 +25,9 @@ class MporaIE(InfoExtractor):
webpage = self._download_webpage(url, video_id) webpage = self._download_webpage(url, video_id)
data_json = self._search_regex( 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) data = self._parse_json(data_json, video_id)
uploader = data['info_overlay'].get('username') uploader = data['info_overlay'].get('username')


Loading…
Cancel
Save