1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-25 11:41:52 +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):
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' % (
PornHubBaseIE._PORNHUB_HOST_RE, _PORNHUB_PATH_RE % ('|video/show', '|embed/'))
_PORNHUB_PATH_RE = _PORNHUB_PATH_RE % ('', '')