projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40e146a
)
[pornhub:playlistbase] Improve extract entries
author
Sergey M․
<dstftw@gmail.com>
Thu, 18 Feb 2016 16:30:19 +0000
(22:30 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 18 Feb 2016 16:30:19 +0000
(22:30 +0600)
youtube_dl/extractor/pornhub.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/pornhub.py
b/youtube_dl/extractor/pornhub.py
index 405dbf0063b56c967403e2214a9ab699a9963084..55af1332489dc39bf756fdbd5eb6ea91a9f98c78 100644
(file)
--- a/
youtube_dl/extractor/pornhub.py
+++ b/
youtube_dl/extractor/pornhub.py
@@
-132,7
+132,7
@@
class PornHubIE(InfoExtractor):
class PornHubPlaylistBaseIE(InfoExtractor):
def _extract_entries(self, webpage):
return [
- self.url_result('http://www.pornhub.com/%s' % video_url,
'PornHub'
)
+ self.url_result('http://www.pornhub.com/%s' % video_url,
PornHubIE.ie_key()
)
for video_url in set(re.findall(
r'href="/?(view_video\.php\?.*\bviewkey=[\da-z]+[^"]*)"', webpage))
]