In case of an http error show Offline in a Now playing field.
This commit is contained in:
parent
9ac60e9f28
commit
e082527edc
@ -60,7 +60,7 @@ type Song struct {
|
||||
func IcecastGetStatus(icecastURL string) (*IcecastStatus, error) {
|
||||
resp, err := http.Get(icecastURL)
|
||||
if err != nil {
|
||||
return &IcecastStatus{}, err
|
||||
return &IcecastStatus{SongName: "Offline"}, err
|
||||
}
|
||||
|
||||
iceStatDTO := &IcecastStatusDTO{}
|
||||
|
Loading…
Reference in New Issue
Block a user