waaverecords / PowerToys-Run-Spotify

Search and control Spotify from PowerToys Run.
MIT License
179 stars 12 forks source link

Add Playlist Support #5

Closed xXFlyingBananaXx closed 8 months ago

xXFlyingBananaXx commented 9 months ago

It would be nice to be able to search for you Playlists, this would be more useful since u wouldnt have to add every song to the queue one by one if you have a playlist. Adding Liked Songs as an Option would also be nice.

waaverecords commented 9 months ago

Searching for a playlist is already possible.

It might just be that liked songs are not considered as a normal playlist.

This needs further investigation.

JonathanBrockhausen commented 9 months ago

It's already showing up when searching:

image
xXFlyingBananaXx commented 9 months ago

are u sure thats your "liked songs" playlist or is it just some random Playlist called "Liked Songs" with the same Cover?

waaverecords commented 9 months ago

This doable.

Retrieving liked songs is under another part of Spotify's API.

It would be done with _spotifyClient.Library.GetTracks. A way to only search for like songs would have to be determined.

This is a good first issue for anyone willing to contribute.

nathannli commented 8 months ago

I tried adding this feature (playing a user's liked songs playlist) but it seems like there's no method to play a users' "liked songs" as a playlist via spotify's api bc there's no uri for it. some suggested workarounds are to create a new playlist and add all your liked tracks in and play that.

Using the suggested api method above, I was able to pull all of the current user's liked songs individually, but through powertoys you would only be able to select a song from there and play that at best (or highlight a bunch and queue them all up?)

https://community.spotify.com/t5/Live-Ideas/Make-quot-Liked-Songs-quot-playlist-shareable/idi-p/4872982/page/24#comments ^ref to issue that is currently in 'will not resolve' status.

waaverecords commented 8 months ago

I see. I don't think queuing all the liked songs would be in line with the rest of the actions. I'll mark this as Won't fix for now.

Thanks for validating this @nathannli 🙏.