mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-04 08:29:57 +01:00
[extractor/hidive] Fix cookie login when netrc is also given (#4447)
Closes #3336 Authored by: winterbird-code
This commit is contained in:
parent
693f060040
commit
2c646fe42c
@ -38,7 +38,9 @@ def _perform_login(self, username, password):
|
|||||||
webpage = self._download_webpage(self._LOGIN_URL, None)
|
webpage = self._download_webpage(self._LOGIN_URL, None)
|
||||||
form = self._search_regex(
|
form = self._search_regex(
|
||||||
r'(?s)<form[^>]+action="/account/login"[^>]*>(.+?)</form>',
|
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 = self._hidden_inputs(form)
|
||||||
data.update({
|
data.update({
|
||||||
'Email': username,
|
'Email': username,
|
||||||
|
Loading…
Reference in New Issue
Block a user