move _jwt_is_expired to utils

This commit is contained in:
Michaël De Boey
2025-03-16 23:40:50 +01:00
parent 98a68be9b8
commit 1b1117a9c5
12 changed files with 32 additions and 22 deletions
+2 -1
View File
@@ -3,6 +3,7 @@ from ..networking.exceptions import HTTPError
from ..utils import (
ExtractorError,
jwt_decode_hs256,
jwt_is_expired,
parse_codecs,
try_get,
url_or_none,
@@ -86,7 +87,7 @@ class DigitalConcertHallIE(InfoExtractor):
@property
def _access_token_is_expired(self):
return self._jwt_is_expired(self._access_token, 30)
return jwt_is_expired(self._access_token, 30)
def _set_access_token(self, value):
self._access_token = value