projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3ee552
)
[iprima] Fix extraction (closes #11920, closes #11896)
author
Michal Čihař
<michal@cihar.com>
Tue, 31 Jan 2017 06:59:55 +0000
(07:59 +0100)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 2 Feb 2017 20:04:33 +0000
(
03:04
+0700)
youtube_dl/extractor/iprima.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/iprima.py
b/youtube_dl/extractor/iprima.py
index da2cdc656ac90f15a575eceabf33309b084c8f28..0fe5768834cef9faed9226ebc8418661306f2b54 100644
(file)
--- a/
youtube_dl/extractor/iprima.py
+++ b/
youtube_dl/extractor/iprima.py
@@
-65,7
+65,7
@@
class IPrimaIE(InfoExtractor):
options = self._parse_json(
self._search_regex(
- r'(?s)
var\s+playerOptions\s*=\s*({.+?});
',
+ r'(?s)
(?:TDIPlayerOptions|playerOptions)\s*=\s*({.+?});\s*\]\]
',
playerpage, 'player options', default='{}'),
video_id, transform_source=js_to_json, fatal=False)
if options: