From 5c0ba680e7a34a00ec2c603d1e54041545c60b30 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Tue, 18 Feb 2025 15:36:50 +0100 Subject: [PATCH] Fix duration formatting. --- src/ytplom/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ytplom/misc.py b/src/ytplom/misc.py index 82fb7c5..768227c 100644 --- a/src/ytplom/misc.py +++ b/src/ytplom/misc.py @@ -90,7 +90,7 @@ def ensure_expected_dirs(expected_dirs: list[Path]) -> None: def _readable_seconds(seconds: int) -> str: """Represent seconds in (up-to-hours) hexagesimal division.""" seconds_str = str(seconds % 60) - minutes_str = str(seconds // 60) + minutes_str = str((seconds // 60) % 60) hours_str = str(seconds // (60 * 60)) return ':'.join([f'0{s}' if len(s) == 1 else s for s in (hours_str, minutes_str, seconds_str)]) -- 2.30.2