Twinkle let's you save the current playing Spotify song to a playlist with a single click
- Clone the project into a folder of your choise (
/opt
by default) - Go into the
twinkle/
folder and run./install
After installation you have to fill out the ~/.twinkle
configuration file.
These values can be aquired by heading to Getting started with Web API, registering an app and following the Authorization Code Flow guide. The refresh token entered in ~/.twinkle
needs to be non-expiring as Twinkle will use it to get new access tokens automaticly.
This is the Spotify ID of the playlist you want to add your saved songs to. You can find it by selecting a playlist and then Share -> Copy Spotify URI and finally extracting the ID as the last part of the URI.
For example spotify:playlist:30IpxqIOXpgFc8PtDOJiLj
means playlist_id=30IpxqIOXpgFc8PtDOJiLj
Simply run ./twinkle
. You'll head a high piched "twinkle" if the command succeeded.
Note! if you installed Twinkle at any other location than /opt
you need to update the ./twinkle
script accordanly.