Sfoglia il codice sorgente

[pornhub:playlistbase] Improve extract entries

Sergey M․ 9 anni fa
parent
commit
88641243ab
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      youtube_dl/extractor/pornhub.py

+ 1 - 1
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))
         ]