diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2013-02-21 16:56:48 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2013-02-21 16:56:48 +0100 |
commit | 1013186a172a05d57e87857604719cae6b8d7049 (patch) | |
tree | 0f76b9a59bac4216a0bdf5f3524b76c1582bed32 /youtube_dl | |
parent | 7c038b3c32bac26d28782852d921a91e530317a6 (diff) |
Also check for JSLoader of JWSPlayer (thanks to @maximeg, Closes #685)
Diffstat (limited to 'youtube_dl')
-rwxr-xr-x | youtube_dl/InfoExtractors.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py index 23bd21af5..d3c3ac264 100755 --- 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 |