projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1471956
)
Unquote password
author
MikeCol
<MikeCol@gmx.net>
Sun, 9 Mar 2014 17:26:18 +0000
(18:26 +0100)
committer
MikeCol
<MikeCol@gmx.net>
Sun, 9 Mar 2014 17:26:18 +0000
(18:26 +0100)
youtube_dl/extractor/pornhub.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/pornhub.py
b/youtube_dl/extractor/pornhub.py
index fdda69f33064fe4bd4e89775c5e3c7d56e4946d2..6d1ffe6761300e07101ad1326e56bc7e84fd526c 100644
(file)
--- a/
youtube_dl/extractor/pornhub.py
+++ b/
youtube_dl/extractor/pornhub.py
@@
-44,7
+44,7
@@
class PornHubIE(InfoExtractor):
video_urls = list(map(compat_urllib_parse.unquote , re.findall(r'"quality_[0-9]{3}p":"([^"]+)', webpage)))
if webpage.find('"encrypted":true') != -1:
video_urls = list(map(compat_urllib_parse.unquote , re.findall(r'"quality_[0-9]{3}p":"([^"]+)', webpage)))
if webpage.find('"encrypted":true') != -1:
- password =
self._html_search_regex(r'"video_title":"([^"]+)', webpage, 'password').replace('+', ' '
)
+ password =
compat_urllib_request.unquote(self._html_search_regex(r'"video_title":"([^"]+)', webpage, 'password').replace('+', ' ')
)
video_urls = list(map(lambda s: aes_decrypt_text(s, password, 32).decode('utf-8'), video_urls))
formats = []
video_urls = list(map(lambda s: aes_decrypt_text(s, password, 32).decode('utf-8'), video_urls))
formats = []