Skip to content

A small application to easily add the currently playing Spotify song to a pre-defined playlist

Notifications You must be signed in to change notification settings

davidjosefson/save-current-song

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SAVE CURRENT SONG

Adds currently playing Spotify song to a pre-defined playlist by using the Last.FM API (which provides a "currently-playing"-feature) and then searching for the song title and artist using the Spotify API.

Sends notifications in Linux (notify-send) and OS X.

Conf.json

The program requires a conf.json-file. A sample is included in the repo.

Build and run

Build and run:

go build . && ./save-current-song

Build for Linux from OS X

Build for linux:

env GOOS=linux GOARCH=amd64 go -o save-current-song-linux build -v .

Logging

Logging is done to ./log.txt

To filter only found/saved songs:

cat log.txt | grep -e "-----\|Found\|Saved"

About

A small application to easily add the currently playing Spotify song to a pre-defined playlist

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages