Browse Source

[pornhub:playlistbase] Improve extract entries

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

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

@ -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))
]


Loading…
Cancel
Save