1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-22 16:57:40 +00:00

[pornhub:playlistbase] Improve extract entries

This commit is contained in:
Sergey M․ 2016-02-18 22:30:19 +06:00
parent 40e146aa1e
commit 88641243ab

View file

@ -132,7 +132,7 @@ class PornHubIE(InfoExtractor):
class PornHubPlaylistBaseIE(InfoExtractor): class PornHubPlaylistBaseIE(InfoExtractor):
def _extract_entries(self, webpage): def _extract_entries(self, webpage):
return [ 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( for video_url in set(re.findall(
r'href="/?(view_video\.php\?.*\bviewkey=[\da-z]+[^"]*)"', webpage)) r'href="/?(view_video\.php\?.*\bviewkey=[\da-z]+[^"]*)"', webpage))
] ]