diff options
author | sepro <4618135+seproDev@users.noreply.github.com> | 2024-06-29 17:30:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-29 17:30:57 +0200 |
commit | 7814c50948a2b9a4c746441ecbc509ae563d5d1f (patch) | |
tree | b179d80d4a3e86cbff3bdb60cdec25cd3256a983 /yt_dlp/extractor/cbc.py | |
parent | 54a63e80af82791d2f0985bd0176bb182963fd5f (diff) |
[cleanup] Bump ruff to 0.5.x (#10282)
Authored by: seproDev
Diffstat (limited to 'yt_dlp/extractor/cbc.py')
-rw-r--r-- | yt_dlp/extractor/cbc.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/yt_dlp/extractor/cbc.py b/yt_dlp/extractor/cbc.py index 740e12926..1522b08e2 100644 --- a/yt_dlp/extractor/cbc.py +++ b/yt_dlp/extractor/cbc.py @@ -455,10 +455,8 @@ class CBCGemIE(InfoExtractor): def claims_token_expired(self): exp = self._get_claims_token_expiry() - if exp - time.time() < 10: - # It will expire in less than 10 seconds, or has already expired - return True - return False + # It will expire in less than 10 seconds, or has already expired + return exp - time.time() < 10 def claims_token_valid(self): return self._claims_token is not None and not self.claims_token_expired() |