mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-09-05 06:45:17 +00:00
Also check for JSLoader of JWSPlayer (thanks to @maximeg, Closes #685)
This commit is contained in:
parent
7c038b3c32
commit
1013186a17
@ -1366,6 +1366,9 @@ class GenericIE(InfoExtractor):
|
|||||||
if mobj is None:
|
if mobj is None:
|
||||||
# Broaden the search a little bit
|
# Broaden the search a little bit
|
||||||
mobj = re.search(r'[^A-Za-z0-9]?(?:file|source)=(http[^\'"&]*)', webpage)
|
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:
|
if mobj is None:
|
||||||
self._downloader.trouble(u'ERROR: Invalid URL: %s' % url)
|
self._downloader.trouble(u'ERROR: Invalid URL: %s' % url)
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user