Renamed Song() method to more clear name SongName().
This commit is contained in:
parent
fb891c5603
commit
73fc9861fd
@ -39,7 +39,7 @@ type IcecastStatusDTO struct {
|
||||
} `json:"icestats"`
|
||||
}
|
||||
|
||||
func (is *IcecastStatusDTO) Song() string {
|
||||
func (is *IcecastStatusDTO) SongName() string {
|
||||
return is.Icestats.Source.Artist + " - " + is.Icestats.Source.Title
|
||||
}
|
||||
|
||||
@ -72,7 +72,7 @@ func IcecastGetStatus(icecastURL string) (*IcecastStatus, error) {
|
||||
return &IcecastStatus{
|
||||
ServerStartISO8601: iceStatDTO.Icestats.ServerStartISO8601,
|
||||
ServerStartDate: iceStatDTO.Icestats.ServerStartDate,
|
||||
SongName: iceStatDTO.Song(),
|
||||
SongName: iceStatDTO.SongName(),
|
||||
ListenerPeak: iceStatDTO.Icestats.Source.ListenerPeak,
|
||||
Listeners: iceStatDTO.Icestats.Source.Listeners,
|
||||
}, nil
|
||||
|
Loading…
Reference in New Issue
Block a user