1
0
Fork 0

Fix index out of range error in np.

main
Icedream 2023-11-28 11:31:33 +01:00
parent 0cd9c23299
commit aac6e7cccf
Signed by: icedream
GPG Key ID: 468BBEEBB9EC6AEA
1 changed files with 4 additions and 2 deletions

View File

@ -187,9 +187,11 @@ func main() {
go func() { go func() {
// enrich metadata with metacollector // enrich metadata with metacollector
req := metacollector.MetaCollectorRequest{ req := metacollector.MetaCollectorRequest{
Artist: tunaMetadata.Artists[0],
Title: tunaMetadata.Title, Title: tunaMetadata.Title,
} }
if len(tunaMetadata.Artists) > 0 {
req.Artist = tunaMetadata.Artists[0]
}
log.Printf("Trying to enrich metadata: %+v", req) log.Printf("Trying to enrich metadata: %+v", req)
resp, err := metacollectorClient.GetTrack(req) resp, err := metacollectorClient.GetTrack(req)
if err == nil { if err == nil {