Fix CDN expiration method Bug

This commit is contained in:
kokarare1212 2021-05-21 12:49:35 +09:00
parent 5173a6ba91
commit 56fd16e642
1 changed files with 2 additions and 2 deletions

View File

@ -129,12 +129,12 @@ class CdnManager:
split = token_str.split("~")
for s in split:
try:
i = s[0].index("=")
i = s.index("=")
except ValueError:
continue
if s[0][:i] == "exp":
expire_at = int(s[0][i:])
expire_at = int(s[0][i + 1:])
break
if expire_at is None: