Skip to content

Commit

Permalink
Pornhub archive improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBigDig committed Dec 19, 2022
1 parent 195f22f commit f9c466d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions youtube_dl/extractor/pornhub.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,9 +518,9 @@ def _extract_entries(self, webpage, host):
return [
self.url_result(
'http://www.%s/%s' % (host, video_url),
PornHubIE.ie_key(), video_title=title)
for video_url, title in orderedSet(re.findall(
r'href="/?(view_video\.php\?.*\bviewkey=[\da-z]+[^"]*)"[^>]*\s+title="([^"]+)"',
PornHubIE.ie_key(), video_title=title, video_id=id)
for video_url, id, title in orderedSet(re.findall(
r'href="/?(view_video\.php\?.*\bviewkey=([\da-z]+)[^"]*)"[^>]*\s+title="([^"]+)"',
container))
]

Expand Down

0 comments on commit f9c466d

Please sign in to comment.