From a327d17cea448293aaa8128b610d851e19506f22 Mon Sep 17 00:00:00 2001 From: MrBigDig Date: Mon, 19 Dec 2022 14:13:14 +0100 Subject: [PATCH] [pornhub] Download archive improvement --- youtube_dl/extractor/pornhub.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/youtube_dl/extractor/pornhub.py b/youtube_dl/extractor/pornhub.py index e2e1500ff..8df0059c0 100644 --- a/youtube_dl/extractor/pornhub.py +++ b/youtube_dl/extractor/pornhub.py @@ -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)) ]