Browse Source

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

rtmp_test
Philipp Hagemeister 12 years ago
parent
commit
1013186a17
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      youtube_dl/InfoExtractors.py

+ 3
- 0
youtube_dl/InfoExtractors.py View File

@ -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


Loading…
Cancel
Save