In Song.DurationString() updated format.
This commit is contained in:
parent
64c2868fcf
commit
0bf81f93c8
@ -22,9 +22,9 @@ func (s *Song) ArtistTitle() string {
|
|||||||
|
|
||||||
func (s *Song) DurationString() string {
|
func (s *Song) DurationString() string {
|
||||||
if s.Duration.Hours() >= 1 {
|
if s.Duration.Hours() >= 1 {
|
||||||
return time.UnixMilli(s.Duration.Milliseconds()).Format("15:04:05")
|
return time.UnixMilli(s.Duration.Milliseconds()).Format("3:4:05")
|
||||||
}
|
}
|
||||||
return time.UnixMilli(s.Duration.Milliseconds()).Format("04:05")
|
return time.UnixMilli(s.Duration.Milliseconds()).Format("4:05")
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *Song) MarshalJSON() ([]byte, error) {
|
func (s *Song) MarshalJSON() ([]byte, error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user