youtube module time format tweak

This commit is contained in:
jan6 2022-02-07 05:58:22 +02:00
parent 956e4290cd
commit d39b1fddbc
1 changed files with 1 additions and 0 deletions

View File

@ -30,6 +30,7 @@ class YouTube:
m = round((m / 60 - h) * 60)
return f"{h}h {m}m {s}s"
elif h==0 and m==0 and s==0: return "LIVE"
elif m==0 and s!=0: return f"{s}s"
else:
return f"{m}m {s}s"