lightly-toasted / melontop2spotify

Home Page:https://melon.toast.name

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

melontop2spotify

Contributors

  • x5tr - 🇰🇷 original idea, korean ex-maintainer of this project, did website design (not active atm)
  • lightly-toasted - the only maintainer of this project, improved music searching

Environment Variables

Warning

Self-hosted instances are not fully supported and unstable for now.

Deploy with Vercel

Required Environment Variables

  • CLIENT_ID: Spotify API client ID for your application. (required)

  • CLIENT_SECRET: Spotify API client secret for your application. (required)

  • REFRESH_TOKEN: A token used to refresh the authentication of your Spotify API session. Use /getting-refresh-token

  • REDIRECT_URI: The URI Spotify will redirect to after a successful login. Used in the authentication process. (required for /getting-refresh-token)

  • KV_REST_API_URL: The URL for the Vercel KV store API.

  • KV_REST_API_TOKEN: The authentication token for accessing the Vercel KV store API.

  • PLAYLIST_ID: The Spotify ID for the playlist where tracks will be added.

Optional Environment Variables

  • PLAYLIST_NAME: The name of the Spotify playlist, supports placeholders. (%DATE%, %DATE_6DIGIT%, %TIME%)

  • PLAYLIST_DESC: A description for the playlist, supports placeholders.

  • UNAVAILABLE_TRACK_URI: The Spotify URI to use for tracks that are not available on Spotify.

  • MELON_URL: The URL to fetch the Melon TOP 100 chart data from.

  • UPDATE_CHECK_INTERVAL: The interval in seconds between checks for updates to the Melon chart.

  • RETRY_DELAY: The number of seconds to wait before retrying update after a failure.

  • UPDATE_WHEN_CHART_NOT_CHANGED: A boolean to decide whether to update the playlist even if the Melon chart has not changed.

About

https://melon.toast.name

License:MIT License


Languages

Language:TypeScript 57.9%Language:Svelte 35.2%Language:JavaScript 4.4%Language:HTML 2.2%Language:CSS 0.3%