diff options
author | mksafavi <mksafavi@gmail.com> | 2024-09-16 01:52:51 +0330 |
---|---|---|
committer | Simon Garrelou <simon@sixfoisneuf.fr> | 2024-09-22 09:54:26 +0200 |
commit | ad746266b7e4b0e98186717e35224870f360c073 (patch) | |
tree | 21931a0958fc10c489e7fd555cc5b464a8079fc2 | |
parent | b92428c3546dfdb13d918cbf4ba3054f3930c22e (diff) | |
download | termsonic-ad746266b7e4b0e98186717e35224870f360c073.tar.gz termsonic-ad746266b7e4b0e98186717e35224870f360c073.zip |
added duration and disk number
-rw-r--r-- | src/page_artists.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/page_artists.go b/src/page_artists.go index a472a3d..ef037e6 100644 --- a/src/page_artists.go +++ b/src/page_artists.go | |||
@@ -122,7 +122,7 @@ func (a *app) loadAlbumInPanel(id string) error { | |||
122 | a.songsList.Clear() | 122 | a.songsList.Clear() |
123 | a.currentSongs = album.Song | 123 | a.currentSongs = album.Song |
124 | for _, song := range album.Song { | 124 | for _, song := range album.Song { |
125 | txt := fmt.Sprintf("%-2d - %s", song.Track, song.Title) | 125 | txt := fmt.Sprintf("[%02d:%02d:%02d] %d.%d - %s", (song.Duration / 3600), (song.Duration / 60), (song.Duration % 60), song.DiscNumber, song.Track, song.Title) |
126 | 126 | ||
127 | a.songsList.AddItem(txt, "", 0, func() { | 127 | a.songsList.AddItem(txt, "", 0, func() { |
128 | sel := a.songsList.GetCurrentItem() | 128 | sel := a.songsList.GetCurrentItem() |