mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-07 15:09:49 +00:00
cleane get_duration_str without zfill on first part
This commit is contained in:
@@ -186,6 +186,8 @@ def get_duration_str(seconds: int) -> str:
|
||||
unit_count, seconds = divmod(seconds, unit_seconds)
|
||||
duration_parts.append(f"{unit_count:02}{unit_label}")
|
||||
|
||||
duration_parts[0] = duration_parts[0].lstrip("0")
|
||||
|
||||
return " ".join(duration_parts)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user