mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-02-08 06:57:27 +00:00
add buffer argument to _jwt_is_expired
This commit is contained in:
@@ -351,7 +351,7 @@ mutation initPlaybackSession(
|
||||
|
||||
@property
|
||||
def _api_headers(self):
|
||||
if self._jwt_is_expired(self._access_token):
|
||||
if self._jwt_is_expired(self._access_token, 120):
|
||||
self.write_debug('Access token has expired; re-logging in')
|
||||
self._perform_login(*self._get_login_info())
|
||||
return {'Authorization': f'Bearer {self._access_token}'}
|
||||
|
||||
Reference in New Issue
Block a user