mirror of
https://github.com/aditya-K2/gspt.git
synced 2026-01-10 06:18:03 -05:00
Fix #13
This commit is contained in:
@@ -155,7 +155,9 @@ func progressFunc() (string, string, string, float64) {
|
||||
}
|
||||
barTopTitle = fmt.Sprintf("[%s Device: %s Shuffle: %t Repeat: %s]", playing, state.Device.Name, state.ShuffleState, state.RepeatState)
|
||||
if state.Item != nil {
|
||||
barTitle = fmt.Sprintf("[blue:-:bi]%s[-:-:-] - [green:-:b]%s", state.Item.Name, state.Item.Artists[0].Name)
|
||||
barTitle = fmt.Sprintf("%s%s[-:-:-] - %s%s",
|
||||
config.Config.Colors.PBarTrack.String(), state.Item.Name,
|
||||
config.Config.Colors.PBarArtist.String(), state.Item.Artists[0].Name)
|
||||
barText = utils.StrTime(float64(state.Progress/1000)) + "/" + utils.StrTime(float64(state.Item.Duration/1000))
|
||||
percentage = (float64(state.Progress) / float64(state.Item.Duration)) * 100
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user