projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa860b8
)
[youporn] Restrict fallback download URL (refs #27822)
author
Sergey M․
<dstftw@gmail.com>
Fri, 15 Jan 2021 08:12:04 +0000
(15:12 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 15 Jan 2021 08:12:04 +0000
(15:12 +0700)
youtube_dl/extractor/youporn.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/youporn.py
b/youtube_dl/extractor/youporn.py
index 4ca75454e86c8addac0f6e9435f89b352289ea05..534270bac3d461bfca5bf0035e6435829413811d 100644
(file)
--- a/
youtube_dl/extractor/youporn.py
+++ b/
youtube_dl/extractor/youporn.py
@@
-103,7
+103,7
@@
class YouPornIE(InfoExtractor):
links.append(video_url)
# 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)
# Fallback #2 (unavailable as at 22.06.2017)