yckms

module
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2021 License: Unlicense

README

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 entiere 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 !

Directories

Path Synopsis
internal
app

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL