Skip to content

[Spotify Player] Improve Spotify Player extension#9511

Merged
peduarte merged 4 commits intoraycast:mainfrom
jatindotdev:ext/spotify-player
Dec 11, 2023
Merged

[Spotify Player] Improve Spotify Player extension#9511
peduarte merged 4 commits intoraycast:mainfrom
jatindotdev:ext/spotify-player

Conversation

@jatindotdev
Copy link
Contributor

@jatindotdev jatindotdev commented Dec 2, 2023

Features & Bug Fixes

  • Added Select Device command to select the device to play music on.
  • Automatically select a device when no device is selected.
  • Better handling when no device is found or Spotify is not installed.
  • Informative error toast messages.
  • Show songs for the Liked Songs playlist.
  • Fix uri for Liked Songs playlist.

Why this way?

Important

It doesn’t break any existing flow or functioning of the extension, just improves and adds support for people who use daemon service to play songs from spotify.

So, i don’t use Spotify app in my mac to play songs, i have spotifyd service running and I control it using this extension or my phone. But every time there is no music playing and one would try to play the playlist or a song, it tries to open spotify app and it crashes (becz i dont have it), so i have to select my device and start music from my phone then i can control it from here.

I have improved this by adding a independent command to select a device to play song and doing better error handling.

If the user wants to select device before hand, use the Select Device command to select a device.

Now when tries to play something it checks.

  1. If no device is found or Spotify is not installed, it will fail to play (show's helpful errors now)
  2. If spotify is installed, opens Spotify and tries to play the song
  3. If no active device but has devices available, use the first device available to start playback

Screencast

auto-select-device.mp4
device-select-command.mp4
show-songs-for-liked-playlist.mp4

Checklist

- feat: add device selection command
- chore: add error handling and failure toast to PlayAction component
- chore: improve error messages
- feat: auto select device to play
- Initial commit
@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: spotify-player Issues related to the spotify-player extension labels Dec 2, 2023
@raycastbot
Copy link
Collaborator

raycastbot commented Dec 2, 2023

Thank you for your contribution! 🎉

🔔 @mattisssa @peduarte @sxn @dillionverma @andreaselia @stuart @tonka3000 @dancannon @pernielsentikaer @stevensd2m @erics118 @hjoelh @hobhouse @bkeys818 you might want to have a look.

@jatindotdev jatindotdev changed the title Update spotify-player extension [Spotify Player] Improve spotify-player extension Dec 2, 2023
@jatindotdev jatindotdev changed the title [Spotify Player] Improve spotify-player extension [Spotify Player] Improve Spotify Player extension Dec 3, 2023
@jatindotdev
Copy link
Contributor Author

jatindotdev commented Dec 6, 2023

@peduarte would love to get your review on the features and changes 😀

also this is one of my first feature contributions so excited!!

@peduarte
Copy link
Contributor

Hey thanks for this! Appreciate the contribution 🙏

@peduarte peduarte merged commit c8adb35 into raycast:main Dec 11, 2023
@raycastbot
Copy link
Collaborator

Published to the Raycast Store:
https://raycast.com/mattisssa/spotify-player

@raycastbot
Copy link
Collaborator

🎉 🎉 🎉

We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag.

@jatindotdev jatindotdev deleted the ext/spotify-player branch December 11, 2023 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extension fix / improvement Label for PRs with extension's fix improvements extension: spotify-player Issues related to the spotify-player extension

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants