fix bug where album duration would be 1:2:50 instead of 1:02:50

This commit is contained in:
Mark 2023-12-27 17:04:02 +01:00
parent b1998e3316
commit daad5c6aae

View File

@ -791,7 +791,7 @@ impl LibraryBrowser {
v.name.to_owned(), v.name.to_owned(),
if duration >= 60 * 60 { if duration >= 60 * 60 {
format!( format!(
" {}:{}:{:0>2}", " {}:{:0>2}:{:0>2}",
duration / (60 * 60), duration / (60 * 60),
(duration / 60) % 60, (duration / 60) % 60,
duration % 60 duration % 60