Skip to content

Latest commit

 

History

History
32 lines (27 loc) · 1.11 KB

README.md

File metadata and controls

32 lines (27 loc) · 1.11 KB

spotdl-playlist

Uses spotdl Python library to download a spotify playlist into specified folder and keeps it up-to-date. Personally, I use it for my Home Assistant setup to play tracks locally with my Sonos devices.

Note

It automatically handles spotdl library updates. No update necessary.

Example docker-compose.yml:

version: "3"
services:
  spotdl:
    container_name: spotdl
    restart: unless-stopped
    image: ghcr.io/barisahmet/spotdl-playlist:latest
    volumes:
      - /path/to/folder:/music
      - /path/to/logs:/logs
    environment:
      PLAYLIST_URLS: "https://[spotify playlist url here],https://[another spotify playlist url here]"
      ENABLE_LOGS: "true"
      SYNC_INTERVAL: "daily"

Environment Variables

  • PLAYLIST_URLS: Comma-separated list of Spotify playlist URLs to sync.
  • SYNC_INTERVAL: Interval for syncing playlists (e.g., hourly, daily).
  • ENABLE_LOGS: Set to true to enable logging, false to disable logging.

Volumes

  • /music: Directory to store downloaded music.
  • /logs: Directory to store log files.