youtube module time format tweak
This commit is contained in:
parent
956e4290cd
commit
d39b1fddbc
|
@ -30,6 +30,7 @@ class YouTube:
|
||||||
m = round((m / 60 - h) * 60)
|
m = round((m / 60 - h) * 60)
|
||||||
return f"{h}h {m}m {s}s"
|
return f"{h}h {m}m {s}s"
|
||||||
elif h==0 and m==0 and s==0: return "LIVE"
|
elif h==0 and m==0 and s==0: return "LIVE"
|
||||||
|
elif m==0 and s!=0: return f"{s}s"
|
||||||
else:
|
else:
|
||||||
return f"{m}m {s}s"
|
return f"{m}m {s}s"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue