···158158 }
159159160160 // Update the record
161161+ //TODO this is failing with InvalidSwap: Record was at "prevouis cid"
162162+ //2025/09/22 08:03:29 spotify: Updated!
161163 input := atproto.RepoPutRecord_Input{
162164 Collection: "fm.teal.alpha.actor.status",
163165 Repo: sess.DID,
+5-2
service/spotify/spotify.go
···538538 } `json:"external_urls"`
539539 DurationMs int `json:"duration_ms"`
540540 } `json:"item"`
541541- ProgressMS int `json:"progress_ms"`
541541+ ProgressMS int `json:"progress_ms"`
542542+ IsPlaying bool `json:"is_playing"`
542543 }
543544544545 err = json.Unmarshal(bodyBytes, &response) // Use bodyBytes here
545546 if err != nil {
546547 return nil, fmt.Errorf("failed to unmarshal spotify response: %w", err)
547548 }
548548-549549+ if response.IsPlaying == false {
550550+ return nil, nil
551551+ }
549552 var artists []models.Artist
550553 for _, artist := range response.Item.Artists {
551554 artists = append(artists, models.Artist{