add comments about http 401

This commit is contained in:
Mozi 2024-04-26 05:22:25 +00:00
parent 696ac32838
commit 569d25e0fa
1 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,8 @@ class BrilliantpalaBaseIE(InfoExtractor):
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)