mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[generic] Support gorillavid.in
Previously, we were a little bit over-eager and got a random swf file. Fixes #2084.
This commit is contained in:
parent
6fa81ee96e
commit
d981cef6b9
1 changed files with 3 additions and 0 deletions
|
@ -305,6 +305,9 @@ def _real_extract(self, url):
|
|||
|
||||
# Start with something easy: JW Player in SWFObject
|
||||
mobj = re.search(r'flashvars: [\'"](?:.*&)?file=(http[^\'"&]*)', webpage)
|
||||
if mobj is None:
|
||||
# Look for gorilla-vid style embedding
|
||||
mobj = re.search(r'(?s)jw_plugins.*?file:\s*["\'](.*?)["\']', webpage)
|
||||
if mobj is None:
|
||||
# Broaden the search a little bit
|
||||
mobj = re.search(r'[^A-Za-z0-9]?(?:file|source)=(http[^\'"&]*)', webpage)
|
||||
|
|
Loading…
Reference in a new issue