]> git.bitcoin.ninja Git - youtube-dl/commitdiff
Also check for JSLoader of JWSPlayer (thanks to @maximeg, Closes #685)
authorPhilipp Hagemeister <phihag@phihag.de>
Thu, 21 Feb 2013 15:56:48 +0000 (16:56 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Thu, 21 Feb 2013 15:56:48 +0000 (16:56 +0100)
youtube_dl/InfoExtractors.py

index 23bd21af51a3d64ccf987c5ba5f8fb89d8d0902a..d3c3ac2640447af6da4f42c48cb607a1383ace84 100755 (executable)
@@ -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