Skip to content

A script that emails you about new releases from Spotify artists you’re interested in

License

Notifications You must be signed in to change notification settings

cherryblossom000/music-release-notifier

Repository files navigation

music-release-notifier

A script that emails you about new releases from Spotify artists you’re interested in.

Building

just bundle

The output is bundle/music-release-notifier.js.

Running

Create a .env file like this:

SPOTIFY_CLIENT_ID=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
SPOTIFY_CLIENT_SECRET=yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
SMTP_HOST=example.com
SMTP_PORT=465
[email protected]
EMAIL_PASS=examplePassword

Put this file in the same directory as the music-release-notifier.js file.

Run:

node path/to/music-release-notifier.js path/to/config

Configuration

Before you start it you need to add a subscriptions.yaml file in path/to/config:

email: [email protected]
artists: # Spotify artist ids
- 6yhD1KjhLxIETFF7vIRf8B # you can also put comments so you know what artist the ids are for
- 7Ln80lUS6He07XvHI8qqHH
# etc

To obtain the Spotify artist id, find the artist on Spotify, and copy the link to the artist (if using the app, right-click on the artist name and click ‘Copy link to artist’ in the ‘Share’ menu). The link should be something like this:

https://open.spotify.com/artist/XXXXXXXXXXXXXXXXXXXXXX?si=YYYYYYYYYYYYYYYYYYYYYY

The id is XXXXXXXXXXXXXXXXXXXXXX. There may or may not be a ?si=YYYYYYYYYYYYYYYYYYYYYY on the end of the URL which you can ignore.

About

A script that emails you about new releases from Spotify artists you’re interested in

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks