mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-04-27 19:15:53 +00:00
add guard
This commit is contained in:
parent
9f97ee4309
commit
21f0e600bf
@ -615,7 +615,7 @@ class YoutubeBaseInfoExtractor(InfoExtractor):
|
|||||||
response = super()._request_webpage(*args, **kwargs)
|
response = super()._request_webpage(*args, **kwargs)
|
||||||
|
|
||||||
# Check that we are still logged-in and cookies have not rotated after every request
|
# Check that we are still logged-in and cookies have not rotated after every request
|
||||||
if self._passed_auth_cookies and not self._has_auth_cookies:
|
if getattr(self, '_passed_auth_cookies', None) and not self._has_auth_cookies:
|
||||||
self.report_warning(
|
self.report_warning(
|
||||||
'The provided YouTube account cookies are no longer valid. '
|
'The provided YouTube account cookies are no longer valid. '
|
||||||
'They have likely been rotated in the browser as a security measure. '
|
'They have likely been rotated in the browser as a security measure. '
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user