From e999ebdf99c5368058175833672918cccaa6e45b Mon Sep 17 00:00:00 2001 From: helloplhm-qwq Date: Sun, 17 Dec 2023 09:09:06 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BC=98=E5=8C=96=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/__init__.py b/modules/__init__.py index 946ba28..8d696a8 100644 --- a/modules/__init__.py +++ b/modules/__init__.py @@ -71,7 +71,7 @@ async def url(source, songId, quality): }, 'expire': { # 在更新缓存的时候把有效期的75%作为链接可用时长,现在加回来 - 'time': (cache['time'] + (sourceExpirationTime[source]['time'] * 0.25)) if cache['expire'] else None, + 'time': int(cache['time'] + (sourceExpirationTime[source]['time'] * 0.25)) if cache['expire'] else None, 'canExpire': cache['expire'], } },