projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c038b3
)
Also check for JSLoader of JWSPlayer (thanks to @maximeg, Closes #685)
author
Philipp Hagemeister
<phihag@phihag.de>
Thu, 21 Feb 2013 15:56:48 +0000
(16:56 +0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Thu, 21 Feb 2013 15:56:48 +0000
(16:56 +0100)
youtube_dl/InfoExtractors.py
patch
|
blob
|
history
diff --git
a/youtube_dl/InfoExtractors.py
b/youtube_dl/InfoExtractors.py
index 23bd21af51a3d64ccf987c5ba5f8fb89d8d0902a..d3c3ac2640447af6da4f42c48cb607a1383ace84 100755
(executable)
--- a/
youtube_dl/InfoExtractors.py
+++ b/
youtube_dl/InfoExtractors.py
@@
-1366,6
+1366,9
@@
class GenericIE(InfoExtractor):
if mobj is None:
# Broaden the search a little bit
mobj = re.search(r'[^A-Za-z0-9]?(?:file|source)=(http[^\'"&]*)', webpage)
+ if mobj is None:
+ # Broaden the search a little bit: JWPlayer JS loader
+ mobj = re.search(r'[^A-Za-z0-9]?file:\s*["\'](http[^\'"&]*)', webpage)
if mobj is None:
self._downloader.trouble(u'ERROR: Invalid URL: %s' % url)
return