Skip to content

Commit ef103b2

Browse files
authored
[ie/hotstar] Fix error handling (#13793)
Fix 7e0af2b Closes #13790 Authored by: bashonly
1 parent 3e49bc8 commit ef103b2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

yt_dlp/extractor/hotstar.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ class HotStarBaseIE(InfoExtractor):
4242
}
4343

4444
def _has_active_subscription(self, cookies, server_time):
45+
server_time = int_or_none(server_time) or int(time.time())
4546
expiry = traverse_obj(cookies, (
4647
self._TOKEN_NAME, 'value', {jwt_decode_hs256}, 'sub', {json.loads},
4748
'subscriptions', 'in', ..., 'expiry', {parse_iso8601}, all, {max})) or 0

0 commit comments

Comments
 (0)