chore: 优化返回类型

This commit is contained in:
helloplhm-qwq 2023-12-17 09:09:06 +08:00
parent 3161b4f712
commit e999ebdf99
No known key found for this signature in database
GPG Key ID: B7542212855B2C26

View File

@ -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'],
}
},