A way to send current playing track in cider to teal collection

Prevent sending a record when music is stopped

Changed files
+1 -1
+1 -1
main.go
··· 220 220 s, err := getCurrentSong() 221 221 if err != nil { 222 222 fmt.Fprintln(os.Stderr, err.Error()) 223 - } else if lastPlaying != s.Info.PlayParams.ID { 223 + } else if s.Info.Name != "" && lastPlaying != s.Info.PlayParams.ID { 224 224 r, err := getInfos(s) 225 225 226 226 if err == nil {