1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-12-23 00:18:55 +00:00

rename _is_jwt_token_expired to _jwt_is_expired

This commit is contained in:
Michaël De Boey
2025-03-16 23:15:55 +01:00
parent 0242090a86
commit 5ffedda327
11 changed files with 20 additions and 20 deletions

View File

@@ -653,7 +653,7 @@ class CBCGemIE(CBCGemBaseIE):
raise
def _fetch_access_token(self):
if self._is_jwt_token_expired(self._access_token):
if self._jwt_is_expired(self._access_token):
try:
self._call_oauth_api({
'grant_type': 'refresh_token',
@@ -671,7 +671,7 @@ class CBCGemIE(CBCGemBaseIE):
if not self._get_login_info()[0]:
return None
if not self._claims_token or self._is_jwt_token_expired(self._claims_token):
if not self._claims_token or self._jwt_is_expired(self._claims_token):
self._claims_token = self._download_json(
'https://services.radio-canada.ca/ott/subscription/v2/gem/Subscriber/profile',
None, 'Downloading claims token', query={'device': 'web'},