1
0
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:
Michaël De Boey
2025-03-16 23:26:14 +01:00
parent 5ffedda327
commit 98a68be9b8
6 changed files with 13 additions and 10 deletions

View File

@@ -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}'}