mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-07 04:00:02 +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)
|
||||
host = mobj.group('host') or 'pornhub.com'
|
||||
video_id = mobj.group('id')
|
||||
cookie_file = self._downloader.params.get('cookiefile')
|
||||
|
||||
if host == 'pornhubpremium.com':
|
||||
if not cookie_file:
|
||||
if 'premium' in host:
|
||||
if not self._downloader.params.get('cookiefile'):
|
||||
raise ExtractorError(
|
||||
'PornHub Premium requires authentication.'
|
||||
' You may want to use --cookies.',
|
||||
|
Loading…
x
Reference in New Issue
Block a user