From 38fce984f4dfe28208ed11d5e8db8cdb7a85b698 Mon Sep 17 00:00:00 2001 From: dirkf Date: Mon, 14 Oct 2024 14:23:46 +0100 Subject: [PATCH] [PornHub] Fix typo in path regex --- youtube_dl/extractor/pornhub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/pornhub.py b/youtube_dl/extractor/pornhub.py index 26bf5d9a3..7d8275e41 100644 --- a/youtube_dl/extractor/pornhub.py +++ b/youtube_dl/extractor/pornhub.py @@ -130,7 +130,7 @@ class PornHubBaseIE(InfoExtractor): class PornHubIE(PornHubBaseIE): IE_DESC = 'PornHub' # Thumbzilla -> Redtube.com, Modelhub -> uviu.com - _PORNHUB_PATH_RE = r'/(?:(?:view_video\.php%s)\?(?:.+&)viewkey=%s)(?P[\da-z]+)' + _PORNHUB_PATH_RE = r'/(?:(?:view_video\.php%s)\?(?:.+&)?viewkey=%s)(?P[\da-z]+)' _VALID_URL = r'https?://(?:[^/]+\.)?%s%s' % ( PornHubBaseIE._PORNHUB_HOST_RE, _PORNHUB_PATH_RE % ('|video/show', '|embed/')) _PORNHUB_PATH_RE = _PORNHUB_PATH_RE % ('', '')