feat: 支持kg源搜索

This commit is contained in:
helloplhm-qwq
2024-01-06 14:10:45 +08:00
parent 03161c504a
commit 1dd9056d88
5 changed files with 190 additions and 4 deletions

View File

@ -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