aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/extractor/cbc.py
diff options
context:
space:
mode:
Diffstat (limited to 'yt_dlp/extractor/cbc.py')
-rw-r--r--yt_dlp/extractor/cbc.py6
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()