A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/lammersbjorn/spotify-to-plex below:

lammersbjorn/spotify-to-plex: Synchronize Spotify playlists to your Plex Media Server automatically.

Spotify to Plex is a tool that automatically synchronizes your user-created Spotify playlists with your Plex Media Server. It supports:

Important Notice: As of November 27, 2024, the Spotify API no longer allows access to Spotify‑generated playlists (e.g. Daily Mix, Discover Weekly). Only user‑created playlists are supported.

Prerequisites & Dependencies
  1. Create a docker-compose.yaml file:

    services:
      spotify-to-plex:
        image: ghcr.io/lammersbjorn/spotify-to-plex:latest
        container_name: spotify-to-plex
        env_file:
          - .env
        restart: unless-stopped
        volumes:
          - ./cache:/cache # Persist cache data
          - ./logs:/app/logs # Persist logs
        healthcheck:
          test: ["CMD", "poetry", "run", "spotify-to-plex", "diagnose"]
          interval: 1m
          timeout: 10s
          retries: 3
          start_period: 1m
        user: appuser
  2. Create an .env file:

    curl -o .env https://raw.githubusercontent.com/lammersbjorn/spotify-to-plex/main/.env.example
    nano .env
  3. Start the service:

Alternatively, use these Docker commands:

# Pull the latest image
docker pull ghcr.io/lammersbjorn/spotify-to-plex:latest

# Create a configuration file
curl -o .env https://raw.githubusercontent.com/lammersbjorn/spotify-to-plex/main/.env.example

# Edit the configuration file
nano .env

# Run the container
docker run -d --name spotify-to-plex --env-file .env ghcr.io/lammersbjorn/spotify-to-plex:latest
2. Local Python Installation
  1. Install Poetry:

    curl -sSL https://install.python-poetry.org | python3 -
  2. Clone the repository and install dependencies:

    git clone https://github.com/lammersbjorn/spotify-to-plex.git
    cd spotify-to-plex
    poetry install
  3. Configure the application:

    cp .env.example .env
    nano .env
  4. Run the application help:

    poetry run spotify-to-plex --help
  1. Spotify API

  2. Plex API

  3. Lidarr API (Optional)

Variable Description Default Required SPOTIFY_CLIENT_ID Spotify Client ID - Yes SPOTIFY_CLIENT_SECRET Spotify Client Secret - Yes PLEX_TOKEN Plex authentication token - Yes PLEX_SERVER_URL URL of your Plex server - Yes PLEX_REPLACE Replace existing playlists false No PLEX_USERS Comma-separated Plex users Owner account No MANUAL_PLAYLISTS Comma-separated Spotify playlist IDs - Only if LIDARR_SYNC=false LIDARR_API_KEY Lidarr API key - Only if LIDARR_SYNC=true LIDARR_API_URL Lidarr server URL - Only if LIDARR_SYNC=true LIDARR_SYNC Enable Lidarr sync false No MAX_PARALLEL_PLAYLISTS Maximum number of playlists to process in parallel 3 No FIRST_RUN Run sync at container start false No CRON_SCHEDULE Schedule using cron syntax 0 1 * * * No ENABLE_CACHE Enable API response caching true No CACHE_TTL Cache time-to-live in seconds 3600 No CACHE_DIR Custom cache directory path ~/.cache/spotify-to-plex No

Or, if using Docker Compose:

docker compose pull
docker compose up -d
  1. 404 Not Found Errors:

  2. No Tracks in Plex:

  3. API Authentication Errors:

  4. Processing Stalls (0%):

Run the diagnostics to verify Spotify and Plex connections, cache status, and configuration integrity:

poetry run spotify-to-plex diagnose

GPL-3.0 License — see the LICENSE file for details.

Disclaimer: This project is not affiliated with or endorsed by Spotify or Plex. Use this tool in accordance with the terms of use of each service.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4