mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-04 04:07:03 -05:00
[pornhub:playlistbase] Do not include videos not from playlist
This commit is contained in:
parent
8f9a477e7f
commit
3a23bae9cc
1 changed files with 6 additions and 3 deletions
|
@ -150,9 +150,12 @@ def _real_extract(self, url):
|
||||||
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, PornHubIE.ie_key())
|
self.url_result(
|
||||||
for video_url in orderedSet(re.findall(
|
'http://www.pornhub.com/%s' % video_url,
|
||||||
r'href="/?(view_video\.php\?.*\bviewkey=[\da-z]+[^"]*)"', webpage))
|
PornHubIE.ie_key(), video_title=title)
|
||||||
|
for video_url, title in orderedSet(re.findall(
|
||||||
|
r'href="/?(view_video\.php\?.*\bviewkey=[\da-z]+[^"]*)"[^>]*\s+title="([^"]+)"',
|
||||||
|
webpage))
|
||||||
]
|
]
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
|
|
Loading…
Reference in a new issue