[extractor/hidive] Fix cookie login when netrc is also given (#4447)

Closes #3336

Authored by: winterbird-code
pull/4458/head^2
winterbird-code 2 years ago committed by GitHub
parent 693f060040
commit 2c646fe42c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -38,7 +38,9 @@ class HiDiveIE(InfoExtractor):
webpage = self._download_webpage(self._LOGIN_URL, None)
form = self._search_regex(
r'(?s)<form[^>]+action="/account/login"[^>]*>(.+?)</form>',
webpage, 'login form')
webpage, 'login form', default=None)
if not form: # logged in
return
data = self._hidden_inputs(form)
data.update({
'Email': username,

Loading…
Cancel
Save