mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-08-29 07:11:38 +03:00
add buffer argument to _jwt_is_expired
This commit is contained in:
@@ -22,7 +22,7 @@ class IwaraBaseIE(InfoExtractor):
|
||||
|
||||
def _is_token_expired(self, token, token_type):
|
||||
# User token TTL == ~3 weeks, Media token TTL == ~1 hour
|
||||
if self._jwt_is_expired(token):
|
||||
if self._jwt_is_expired(token, 120):
|
||||
self.to_screen(f'{token_type} token has expired')
|
||||
return True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user