Compare commits

...

2 Commits

Author SHA1 Message Date
MrBigDig
2ce8a3fe83
Merge a327d17cea into e1b3fa242c 2024-07-28 01:37:25 +09:00
MrBigDig
a327d17cea [pornhub] Download archive improvement 2022-12-19 17:00:57 +01:00

View File

@ -518,9 +518,9 @@ class PornHubPlaylistBaseIE(PornHubBaseIE):
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))
]