commit 1013186a172a05d57e87857604719cae6b8d7049
parent 7c038b3c32bac26d28782852d921a91e530317a6
Author: Philipp Hagemeister <phihag@phihag.de>
Date: Thu, 21 Feb 2013 16:56:48 +0100
Also check for JSLoader of JWSPlayer (thanks to @maximeg, Closes #685)
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py
@@ -1367,6 +1367,9 @@ class GenericIE(InfoExtractor):
# 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