advaith1/statusbadges

Some Spotify songs missing in the Presence API response

Opened this issue · 5 comments

When using the Presence API, certain tracks consistently fail to appear in the activity response, despite Discord detecting them and showing them on a user's profile. Example I found: https://open.spotify.com/album/72O8jLQRKfW2vw0aVoMbn7

do you mean it's omitted from /presence/:id? that endpoint just returns the data of the user's last presence update regardless of its contents

how is that possible tho

do you mean it's omitted from /presence/:id? that endpoint just returns the data of the user's last presence update regardless of its contents

When you play that specific song, the Spotify activity is missing.

Normal behavior:

{
  "status": "idle",
  "guild_id": "1134425783864143942",
  "client_status": {
    "desktop": "idle"
  },
  "activities": [
    {
      "type": 4,
      "state": "winter break",
      "name": "Custom Status",
      "id": "custom",
      "emoji": {
        "name": "pn_SnowpixSleep",
        "id": "907327688816074814",
        "animated": false
      },
      "created_at": 1739282190640
    },
    {
      "type": 2,
      "timestamps": {
        "start": 1739318462909,
        "end": 1739318848454
      },
      "sync_id": "6cGQca2qBRK5BlKxccufYS",
      "state": "上海アリス幻樂団",
      "session_id": "dadb4b8d9ed5f19db4527b5f40d0c92b",
      "party": {
        "id": "spotify:1124762870949888051"
      },
      "name": "Spotify",
      "id": "spotify:1",
      "flags": 48,
      "details": "平安のエイリアン",
      "created_at": 1739318507588,
      "assets": {
        "large_text": "東方星蓮船 〜 Undefined Fantastic Object. サウンドトラック",
        "large_image": "spotify:ab67616d0000b27306812adcb5d92694c34a4d01"
      }
    }
  ]
}

Behavior when playing that song:

{
  "status": "idle",
  "guild_id": "1134425783864143942",
  "client_status": {
    "desktop": "idle"
  },
  "activities": [
    {
      "type": 4,
      "state": "winter break",
      "name": "Custom Status",
      "id": "custom",
      "emoji": {
        "name": "pn_SnowpixSleep",
        "id": "907327688816074814",
        "animated": false
      },
      "created_at": 1739282190640
    }
  ]
}

Sounds like a Discord issue then, because they must not be including it.

Sounds like a Discord issue then, because they must not be including it.

It does show up in discord

Image