Skip to content
This repository was archived by the owner on Jul 26, 2024. It is now read-only.
/ yckms Public archive

You Can't Kill The Metal (but you can) Sync (it)

License

Notifications You must be signed in to change notification settings

papey/yckms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 build

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)
    • LOGLEVEL : change log level of the all the application
  • 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, Recoversion and La Pifothèque for all you podcasts !

About

You Can't Kill The Metal (but you can) Sync (it)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages