1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-07 04:00:02 +08:00

Address feedback

This commit is contained in:
Tristan Waddington 2020-03-08 01:41:57 -08:00
parent 052d642a3c
commit 90ac2cf996
No known key found for this signature in database
GPG Key ID: 19AEB0C1E96BC8EB

View File

@ -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.',