mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-07 14:47:46 +08:00
Address feedback
This commit is contained in:
parent
052d642a3c
commit
90ac2cf996
@ -165,10 +165,9 @@ class PornHubIE(PornHubBaseIE):
|
|||||||
mobj = re.match(self._VALID_URL, url)
|
mobj = re.match(self._VALID_URL, url)
|
||||||
host = mobj.group('host') or 'pornhub.com'
|
host = mobj.group('host') or 'pornhub.com'
|
||||||
video_id = mobj.group('id')
|
video_id = mobj.group('id')
|
||||||
cookie_file = self._downloader.params.get('cookiefile')
|
|
||||||
|
|
||||||
if host == 'pornhubpremium.com':
|
if 'premium' in host:
|
||||||
if not cookie_file:
|
if not self._downloader.params.get('cookiefile'):
|
||||||
raise ExtractorError(
|
raise ExtractorError(
|
||||||
'PornHub Premium requires authentication.'
|
'PornHub Premium requires authentication.'
|
||||||
' You may want to use --cookies.',
|
' You may want to use --cookies.',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user