mirror of
https://github.com/MeoProject/lx-music-api-server.git
synced 2025-07-07 06:52:11 +08:00
feat: 支持kg源搜索
This commit is contained in:
@ -175,7 +175,10 @@ def sizeFormat(size):
|
||||
return f"{round(size / 1024**5, 2)}PB"
|
||||
|
||||
def timeLengthFormat(t):
|
||||
t = int(t)
|
||||
try:
|
||||
t = int(t)
|
||||
except:
|
||||
return '//'
|
||||
hour = t // 3600
|
||||
minute = (t % 3600) // 60
|
||||
second = t % 60
|
||||
|
Reference in New Issue
Block a user