In this case it is safer to compare with Time field. What if it is a problem with just this song?
This commit is contained in:
parent
d60da459ac
commit
981bbd8968
@ -135,7 +135,7 @@ func (h *RadioHandlers) LastSong(w http.ResponseWriter, r *http.Request) {
|
||||
h.logErr.Println("cannot retrieve last songs:", err)
|
||||
}
|
||||
|
||||
if song.Artist == "" {
|
||||
if song.Time == "" {
|
||||
w.WriteHeader(http.StatusNotFound)
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user