mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-09-27 08:46:34 +02:00
add comments about http 401
This commit is contained in:
parent
696ac32838
commit
569d25e0fa
@ -34,6 +34,8 @@ def _perform_login(self, username, password):
|
||||
return
|
||||
|
||||
if urlh.status == 401:
|
||||
# The stored cookies have been invalidated.
|
||||
# No login page will be returned and cookies will be reset, so visit the page again.
|
||||
login_page = self._download_webpage(self._LOGIN_API, None, 'Downloading login page')
|
||||
|
||||
login_form = self._hidden_inputs(login_page)
|
||||
|
Loading…
Reference in New Issue
Block a user