Skip to content
You Can't Kill The Metal (but you can) Sync (it)
Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build/ci
cmd
internal
.gitignore
CONTRIBUTING.md
LICENSE
README.md
go.mod
go.sum

README.md

YCKMS

Build Status

Small go app to sync playlists from various french metal podcast shows to Spotify.

YCKMS currently supports :

Getting Started

Prerequisites

Installing

Get deps using go mod

go mod vendor

then buld

cd cmd
go build ykcms.go

Usage

Setup

Oauth
  1. Create a YCKMS application on Spotify : https://developer.spotify.com/my-applications/
  2. Set http://localhost:8080 as callback url (in order to use a different port see env var section bellow)
  3. Copy SPOTIFY_ID and SPOTIFY_SECRET

Args, env and flags

YCKMS takes one arg, multiple env var and multiple flags

  • Env vars :

    • SPOTIFY_ID : from oauth setup (3)
    • SPOTIFY_SECRET : from oauth setup (3)
    • HTTP_CALLBACK_PORT : change http callback port (default 8080)
  • Arguments :

  • Flags :

    • --last, -l : sync last show
    • --date, -d : sync show from date --from to date --to (format YYYY-MM-DD)

If no flag is provided, sync all

Example

# Launch
SPOTIFY_ID=XXXX SPOTIFY_SECRET=YYYY ./yckms -l https://feed.ausha.co/owAEhJ0qOPkb
# Waiting for oauth stuff, go to url to oauth
Please log in to Spotify by visiting the following page : https://accounts.spotify.com/authorize?client_id=blablablalbalablbala
# Accept access to user profile and data
# Ok, everything is fine
You are logged in as : morty

Notes

Le Bruit podcast is focused on album rather than songs (like YCKM). Each playlist generated for Le Bruit is a collection of pseudo random tracks of albums discussed in the show episode.

Running the tests

go test github.com/papey/yckms/internal/app

Continuous Integration

See drone.github.papey.fr/papey/yckms

Built With

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Authors

  • Wilfried OLLIVIER - Main author - Papey

License

LICENSE file for details

Generated playlists

All playlists generated by YCKMS are available on my Spotify profile

Acknowledgments

  • Thanks Le Bruit, YCKM Harry Cover and La Pifothèque for all you podcasts !
You can’t perform that action at this time.