Skip to content

A feature-rich command-line audio/video downloader

Also check for JSLoader of JWSPlayer (thanks to @maximeg, Closes #685)

Philipp Hagemeister1013186a172a
diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py
index 23bd21af51..d3c3ac2640 100755
--- 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