projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6fa81ee
)
[generic] Support gorillavid.in
author
Philipp Hagemeister
<phihag@phihag.de>
Sun, 5 Jan 2014 04:34:06 +0000
(
05:34
+0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Sun, 5 Jan 2014 04:34:08 +0000
(
05:34
+0100)
Previously, we were a little bit over-eager and got a random swf file.
Fixes #2084.
youtube_dl/extractor/generic.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/generic.py
b/youtube_dl/extractor/generic.py
index 57a6b1820c90891a9c9c138e27ff042155f36670..8534c6f90c3ca984e43dfa03786c5d99082f7182 100644
(file)
--- a/
youtube_dl/extractor/generic.py
+++ b/
youtube_dl/extractor/generic.py
@@
-305,6
+305,9
@@
class GenericIE(InfoExtractor):
# Start with something easy: JW Player in SWFObject
mobj = re.search(r'flashvars: [\'"](?:.*&)?file=(http[^\'"&]*)', webpage)
+ if mobj is None:
+ # Look for gorilla-vid style embedding
+ mobj = re.search(r'(?s)jw_plugins.*?file:\s*["\'](.*?)["\']', webpage)
if mobj is None:
# Broaden the search a little bit
mobj = re.search(r'[^A-Za-z0-9]?(?:file|source)=(http[^\'"&]*)', webpage)