Browse Source

[pornhub:playlist] Allow alphanumeric viewkeys (Closes #7695)

totalwebcasting
Sergey M․ 9 years ago
parent
commit
d53a4af1a4
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      youtube_dl/extractor/pornhub.py

+ 2
- 1
youtube_dl/extractor/pornhub.py View File

@ -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(


Loading…
Cancel
Save