From 1013186a172a05d57e87857604719cae6b8d7049 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Thu, 21 Feb 2013 16:56:48 +0100 Subject: [PATCH] Also check for JSLoader of JWSPlayer (thanks to @maximeg, Closes #685) --- youtube_dl/InfoExtractors.py | 3 +++ 1 file changed, 3 insertions(+) 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