Skip to content

Commit

Permalink
[PornHub] Fix typo in path regex
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkf authored Oct 14, 2024
1 parent 49093c0 commit 38fce98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube_dl/extractor/pornhub.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def is_logged(webpage):

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 % ('', '')
Expand Down

0 comments on commit 38fce98

Please sign in to comment.