[ie/youtube] revert back to warning

Otherwise it gets caught up in other error handling
This commit is contained in:
coletdjnz 2025-04-26 11:34:19 +12:00
parent 1276b86e01
commit 595d9b9041
No known key found for this signature in database
GPG Key ID: 91984263BB39894A

View File

@ -616,11 +616,10 @@ class YoutubeBaseInfoExtractor(InfoExtractor):
# 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._had_cookie_auth and not self._has_auth_cookies(): if self._had_cookie_auth and not self._has_auth_cookies():
raise ExtractorError( 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. '
f'For tips on how to effectively export YouTube cookies, refer to {self._COOKIE_HOWTO_WIKI_URL} .', f'For tips on how to effectively export YouTube cookies, refer to {self._COOKIE_HOWTO_WIKI_URL} .')
expected=True)
return response return response