From: Sergey M․ Date: Thu, 18 Feb 2016 16:30:19 +0000 (+0600) Subject: [pornhub:playlistbase] Improve extract entries X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=88641243abfdc5673359269574bf7c76191966bc;p=youtube-dl [pornhub:playlistbase] Improve extract entries --- diff --git a/youtube_dl/extractor/pornhub.py b/youtube_dl/extractor/pornhub.py index 405dbf006..55af13324 100644 --- 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)) ]