raycast / extensions

Everything you need to extend Raycast.
https://developers.raycast.com
MIT License
5.03k stars 2.76k forks source link

[Spotify Player] A command to play the AI DJ #12719

Open kud opened 1 month ago

kud commented 1 month ago

Extension

https://www.raycast.com/mattisssa/spotify-player

Description

It could be great to be able to have a command to start the AI DJ.

CleanShot 2024-06-02 at 01 53 32@2x

Who will benefit from this feature?

Everyone

Anything else?

No response

raycastbot commented 1 month ago

Thank you for opening this issue!

🔔 @mattisssa @peduarte @sxn @dillionverma @andreaselia @stuart @tonka3000 @dancannon @pernielsentikaer @stevensd2m @erics118 @hjoelh @hobhouse @bkeys818 @jatindotdev @the-devbear @rfaccio @badta5te @andyburris you might want to have a look.

💡 Author and Contributors commands The author and contributors of `mattisssa/spotify-player` can trigger bot actions by commenting: - `@raycastbot close this issue` Closes the issue. - `@raycastbot rename this issue to "Awesome new title"` Renames the issue. - `@raycastbot reopen this issue` Reopens the issue. - `@raycastbot assign me` Assigns yourself to the issue. - `@raycastbot good first issue` Adds the "Good first issue" label to the issue. - `@raycastbot keep this issue open` Make sure the issue won't go stale and will be kept open by the bot.
erics118 commented 1 month ago

I tried to do this, but unfortunately it doesn't seem like the spotify app likes doing this.

The URI for the DJ is spotify:playlist:37i9dQZF1EYkqdzj48dyYq, but doing a curl request like so:

curl --request PUT \
  --url https://api.spotify.com/v1/me/player/play \
  --header 'Authorization: Bearer D74...a04' \
  --header 'Content-Type: application/json' \
  --data '{
    "context_uri": "spotify:playlist:37i9dQZF1EYkqdzj48dyYq"
}'

doesn't seem to work.

kud commented 1 month ago

Feel like this guy has the same issue https://community.spotify.com/t5/Spotify-for-Developers/What-Spotify-Web-API-does-the-DJ-button-use/td-p/5660189

erics118 commented 1 month ago

Yup, I saw that post.