1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-06 09:27:29 +00:00

[PornHub] Fix typo in path regex

This commit is contained in:
dirkf 2024-10-14 14:23:46 +01:00 committed by GitHub
parent 49093c09c0
commit 38fce984f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -130,7 +130,7 @@ class PornHubBaseIE(InfoExtractor):
class PornHubIE(PornHubBaseIE): class PornHubIE(PornHubBaseIE):
IE_DESC = 'PornHub' # Thumbzilla -> Redtube.com, Modelhub -> uviu.com IE_DESC = 'PornHub' # Thumbzilla -> Redtube.com, Modelhub -> uviu.com
_PORNHUB_PATH_RE = r'/(?:(?:view_video\.php%s)\?(?:.+&)viewkey=%s)(?P<id>[\da-z]+)' _PORNHUB_PATH_RE = r'/(?:(?:view_video\.php%s)\?(?:.+&)?viewkey=%s)(?P<id>[\da-z]+)'
_VALID_URL = r'https?://(?:[^/]+\.)?%s%s' % ( _VALID_URL = r'https?://(?:[^/]+\.)?%s%s' % (
PornHubBaseIE._PORNHUB_HOST_RE, _PORNHUB_PATH_RE % ('|video/show', '|embed/')) PornHubBaseIE._PORNHUB_HOST_RE, _PORNHUB_PATH_RE % ('|video/show', '|embed/'))
_PORNHUB_PATH_RE = _PORNHUB_PATH_RE % ('', '') _PORNHUB_PATH_RE = _PORNHUB_PATH_RE % ('', '')