raycast / extensions

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

[Spotify Player] does not launch Spotify when asked to play #9649

Closed Hottorun closed 7 months ago

Hottorun commented 9 months ago

Extension

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

Description

Before when I typed play into raycast and clicked the command by your extension it opened Spotify and started playing. This does not work now with any function.

Steps To Reproduce

  1. Open Raycast with extension installed
  2. type play and press enter
  3. Does not do anything but get the playing notification

Current Behaviour

No response

Expected Behaviour

No response

raycastbot commented 9 months ago

Thank you for opening this issue!

🔔 @mattisssa @peduarte @sxn @dillionverma @andreaselia @stuart @tonka3000 @dancannon @pernielsentikaer @stevensd2m @erics118 @hjoelh @hobhouse @bkeys818 @jatindotdev 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` Reopen the issue.
jatindotdev commented 9 months ago

hey @Hottorun, the cureent version of spotify player doesn't depend on Spotify app to play songs it uses the first active client or you can select one using select device command

jatindotdev commented 9 months ago

can you check if there's a active client using select device command

Hottorun commented 9 months ago

Could you maybe give me a little guide. That would be appreciated. I sadly don't know these softwares. Thank you

Sent from Proton Mail for iOS

Am Dienstag, 12. Dezember 2023 um 11:36, Jatin @.***(mailto:Am Dienstag, 12. Dezember 2023 um 11:36, Jatin < schrieb:

can you check if there's a active client using select device command

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

conrmahr commented 9 months ago

+1 to this issue, I get an Uknown error pop-up message when I choose the Toggle Play/Pause command from Raycast and the Spotify client on macOS is not opened, but works fine if the client is already opened.

conrmahr commented 9 months ago

can you check if there's a active client using select device command

It only shows an active device when you have the Spotify client open. I've selected it, but if I quit it, the Toggle Play/Pause still errors out.

jatindotdev commented 9 months ago

+1 to this issue, I get an Uknown error pop-up message when I choose the Toggle Play/Pause command from Raycast and the Spotify client on macOS is not opened, but works fine if the client is already opened.

can you paste the error log or record a video of the error

conrmahr commented 9 months ago

can you paste the error log or record a video of the error @jatindotdev 🖥️

https://github.com/raycast/extensions/assets/363781/d748ec20-3d0e-46f7-a10f-8758b2f6aca5

jatindotdev commented 9 months ago

can you paste the error log or record a video of the error @jatindotdev 🖥️

raycast-spot.mov

looks like the script fails to start spotify

peduarte commented 7 months ago

I believe the issue is that when you press play without having the Mac App running, it will try and play it from whatever "Spotify Connect" device it finds connected to your account.

In my case, it starts playing at home, even though I am in my office.

What we could do, when you press play:

  1. Check if there is an active device
  2. If yes, play from there and communicate which device its playing from in the Toast/HUD component
  3. If not, play from Mac App — this needs to be launched first via AppleScript (check menu bar command for that)
conrmahr commented 7 months ago

I believe the issue is that when you press play without having the Mac App running, it will try and play it from whatever "Spotify Connect" device it finds connected to your account.

In my case, it starts playing at home, even though I am in my office.

What we could do, when you press play:

  1. Check if there is an active device
  2. If yes, play from there and communicate which device its playing from in the Toast/HUD component
  3. If not, play from Mac App — this needs to be launched first via AppleScript (check menu bar command for that)

Does #9682 address this?

peduarte commented 7 months ago

I just looked at it, and not really. I'll comment there

peduarte commented 7 months ago

More context here https://github.com/raycast/extensions/pull/9682#issuecomment-1917400076