1
0
Fork 0

Fix null pointer error.

liquidsoap-2.2
Icedream 2021-02-28 19:02:53 +01:00
parent 5ffabd4ad1
commit 08fe330421
Signed by: icedream
GPG Key ID: 468BBEEBB9EC6AEA
1 changed files with 12 additions and 12 deletions

View File

@ -238,7 +238,6 @@ func main() {
tunaData.Status = "playing"
tunaData.Artists = []string{currentMetadata.Artist}
tunaData.Title = currentMetadata.Title
}
// enrich metadata with metacollector
resp, err := metacollectorClient.GetTrack(metacollector.MetaCollectorRequest{
Artist: currentMetadata.Artist,
@ -252,6 +251,7 @@ func main() {
}
tunaData.Label = resp.Publisher
}
}
if err := output.Post(tunaData); err != nil {
log.Printf("WARNING: Failed to send new metadata to tuna: %s", err.Error())
}