projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e1b928
)
[pornhub:playlist] Allow alphanumeric viewkeys (Closes #7695)
author
Sergey M․
<dstftw@gmail.com>
Sun, 29 Nov 2015 21:47:01 +0000
(
03:47
+0600)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 29 Nov 2015 21:47:01 +0000
(
03:47
+0600)
youtube_dl/extractor/pornhub.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/pornhub.py
b/youtube_dl/extractor/pornhub.py
index 965940a4b07fc5d17fa61cf1208a029ce4794216..08275687dde33e4668c167c1db4831d36427cd41 100644
(file)
--- a/
youtube_dl/extractor/pornhub.py
+++ b/
youtube_dl/extractor/pornhub.py
@@
-147,7
+147,8
@@
class PornHubPlaylistIE(InfoExtractor):
entries = [
self.url_result('http://www.pornhub.com/%s' % video_url, 'PornHub')
- for video_url in set(re.findall('href="/?(view_video\.php\?viewkey=\d+[^"]*)"', webpage))
+ for video_url in set(re.findall(
+ r'href="/?(view_video\.php\?.*\bviewkey=[\da-z]+[^"]*)"', webpage))
]
playlist = self._parse_json(