mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-01-07 17:16:08 +00:00
[youporn] Restrict fallback download URL (refs #27822)
This commit is contained in:
parent
aa860b8016
commit
7e92f9015e
|
@ -103,7 +103,7 @@ class YouPornIE(InfoExtractor):
|
||||||
links.append(video_url)
|
links.append(video_url)
|
||||||
|
|
||||||
# Fallback #1, this also contains extra low quality 180p format
|
# Fallback #1, this also contains extra low quality 180p format
|
||||||
for _, link in re.findall(r'<a[^>]+href=(["\'])(http.+?)\1[^>]+title=["\']Download [Vv]ideo', webpage):
|
for _, link in re.findall(r'<a[^>]+href=(["\'])(http(?:(?!\1).)+\.mp4(?:(?!\1).)*)\1[^>]+title=["\']Download [Vv]ideo', webpage):
|
||||||
links.append(link)
|
links.append(link)
|
||||||
|
|
||||||
# Fallback #2 (unavailable as at 22.06.2017)
|
# Fallback #2 (unavailable as at 22.06.2017)
|
||||||
|
|
Loading…
Reference in a new issue