An open API service indexing awesome lists of open source software.

https://github.com/synox/srf-radio-sync-to-spotify

When you ❤️ SRF radio, but not the talking.
https://github.com/synox/srf-radio-sync-to-spotify

Last synced: 9 months ago
JSON representation

When you ❤️ SRF radio, but not the talking.

Awesome Lists containing this project

README

          

> Fetch songs from https://www.srf.ch/radio-srf-3/gespielte-musik and create a spotify playlist for each day.

# Usage
Create spotify app https://developer.spotify.com/documentation/general/guides/app-settings/#register-your-app and create file `spotify_credentials.json`

# Example
https://open.spotify.com/playlist/3kIk50muB3X5IUVHaMuCXq?si=_TAGFkReQZuAW0usXLM5lQ

# TODO
- Use refresh-token for automatic login to spotify. Currently the tokens are only valid for a few minutes.
- Wrap it in a docker container so it can be executed automatically.
- Error handling when creating the spotify playlist.

# Used resources:
- https://dev.to/tusharpandey13/getting-on-with-es6-nodejs-eslint-without-babel-4ip7
- https://github.com/xojs/xo