]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[pornhub:playlistbase] Improve extract entries
authorSergey M․ <dstftw@gmail.com>
Thu, 18 Feb 2016 16:30:19 +0000 (22:30 +0600)
committerSergey M․ <dstftw@gmail.com>
Thu, 18 Feb 2016 16:30:19 +0000 (22:30 +0600)
youtube_dl/extractor/pornhub.py

index 405dbf0063b56c967403e2214a9ab699a9963084..55af1332489dc39bf756fdbd5eb6ea91a9f98c78 100644 (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))
         ]