1
0

In case of an http error show Offline in a Now playing field.

This commit is contained in:
Alexander Andreev 2023-08-21 18:31:06 +04:00
parent 9ac60e9f28
commit e082527edc
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -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{}