Skip to content

A little tool utilizing the python apis for both Spotify and Google Play Music to port playlists from Spotify to Google Play Music

Notifications You must be signed in to change notification settings

yeahdef/spotify2playmusic

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 

Repository files navigation

spotify2playmusic.py

I couldn't find a tool anywhere to do this... so I took a day and wrote one.
This will allow you to log into your Spotify and Google Play Music accounts and select a playlist from Spotify to be cloned over to Google Play Music
There are a few requirements...

Requirements

Spotify Premium
A Spotify Developer Key
libspotify
pyspotify
gmusicapi
Strongly Recommended: Google Music All Access (has not been tested without it)

Spotify Developer Key
Go to [The Spotify Developer Page](https://devaccount.spotify.com/my-account/keys/), login, and get a key
Put it in the same directory as spotify2playmusic. It won't work at all without the key.
libspotify and pyspotify
Go to the [pyspotify installation page](http://pyspotify.mopidy.com/en/latest/installation/) and follow the instructions to install libspotify and pyspotify for your OS (you will be using pip). Make sure you install the beta version of pyspotify (shown below) if the regular version doesn't work for you. Users on Ubuntu have reported this as a necessary step. ```sh pip install --pre pyspotify ```
gmusicapi

Use pip.

```sh pip install gmusicapi ```

Bugs/Limitations

  • It's pretty slow, but at least you don't have to copy everything over by hand
    • It is slow because it does its best to match things. It uses the levenshtein calculation to figure out how different two strings are. That number is then used to determine if the strings are similar enough to be a match. If they are then the song is added to the array of songs to be added to the new playlist on google play music.
  • Some songs don't match right. By trying to make it match variations it does its best to weed out the bad matches, sometimes it works, sometimes it doesn't. Overall it is pretty accurate though
  • Sometimes it crashes randomly. No idea why.

Todos/Future Additions

  • Add the functionality to go from google play music to spotify playlists (I guess I'll have to change the name)
  • Use the best match from the store and the uploaded library (compare them)
  • Speed things up somehow
  • Improve the matching calculation's accuracy
  • Catch more unhandled errors and deal with them
  • Clean up the code

Enjoy?

About

A little tool utilizing the python apis for both Spotify and Google Play Music to port playlists from Spotify to Google Play Music

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%