SimpMusic icon indicating copy to clipboard operation
SimpMusic copied to clipboard

Support for Spotify Playlists

Open karmakarmeghdip opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe. Spotify Playlists are publicly available and many people share their Spotify Playlists, so support for it would be helpful.

Describe the solution you'd like A way to import Spotify Playlist from a URL by pasting it into the app

karmakarmeghdip avatar Feb 20 '24 15:02 karmakarmeghdip

If you sync with your youtube account, you can use this tool: https://github.com/linsomniac/spotify_to_ytmusic

Edit: After fidling around with this importer, I had to adjust the lookup_song algo a little, for it to not select videos. ` query = f"{track_name} by {artist_name}" if details: details.query = query details.suggestions = yt.get_search_suggestions(query=query) songs = yt.search(query=query, filter="songs")

songsFiltered = list(filter(lambda s: s["title"].lower() == track_name.lower() and any(a["name"].lower() == artist_name.lower() for a in s["artists"]), songs))
songsFiltered.sort(key=lambda song: song["duration_seconds"])
return songsFiltered[0]

`

or tunemymusic.com

Both work like a charm, though the latter is restricted to 500 songs per playlist.

tdymel avatar Mar 30 '24 17:03 tdymel

Use this https://github.com/sigma67/spotify_to_ytmusic

maxrave-dev avatar Mar 31 '24 01:03 maxrave-dev