mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-08-30 07:41:42 +03:00
move _jwt_is_expired to utils
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
from .wrestleuniverse import WrestleUniverseBaseIE
|
||||
from ..utils import (
|
||||
int_or_none,
|
||||
jwt_is_expired,
|
||||
traverse_obj,
|
||||
url_or_none,
|
||||
)
|
||||
@@ -20,7 +21,7 @@ class StacommuBaseIE(WrestleUniverseBaseIE):
|
||||
|
||||
@WrestleUniverseBaseIE._TOKEN.getter
|
||||
def _TOKEN(self):
|
||||
if self._REAL_TOKEN and self._jwt_is_expired(self._REAL_TOKEN):
|
||||
if self._REAL_TOKEN and jwt_is_expired(self._REAL_TOKEN):
|
||||
self._refresh_token()
|
||||
|
||||
return self._REAL_TOKEN
|
||||
|
||||
Reference in New Issue
Block a user