mirror of
https://github.com/Dummi26/musicdb.git
synced 2025-03-10 05:43:53 +01:00
fix bug where album duration would be 1:2:50 instead of 1:02:50
This commit is contained in:
parent
b1998e3316
commit
daad5c6aae
@ -791,7 +791,7 @@ impl LibraryBrowser {
|
||||
v.name.to_owned(),
|
||||
if duration >= 60 * 60 {
|
||||
format!(
|
||||
" {}:{}:{:0>2}",
|
||||
" {}:{:0>2}:{:0>2}",
|
||||
duration / (60 * 60),
|
||||
(duration / 60) % 60,
|
||||
duration % 60
|
||||
|
Loading…
Reference in New Issue
Block a user