Skip to content
This repository was archived by the owner on Jan 24, 2026. It is now read-only.

cmathews393/spotify-to-plex

Repository files navigation

Spotify To Plex (Spotiplex) [ DEPRECATED ]

Due to the Spotify API changes, and no longer using Spotify or Plex for music, this app/script is no longer under development. This might be a better option if you want something open source, but I have not used it so I can't confirm. Soundiiz is a paid app that can do the same across a multitude of services. Deezer will allow you to migrate from Spotify to Deezer directly in the web app.

Docker Build

Table of Contents

Note: Undergoing rewrite to improve performance and fix various inherent bugs in current implementation. Check Bluesky for updates. Will release beta when it's in a testable state.

How To

Prerequisites

  1. Ensure you have Python 3 installed (if not running docker)
  2. Ensure you have poetry installed
  3. Ensure you have a Spotify api key from here

Setup (Script Version)

  1. Clone the repo.
  2. Configure settings for your environment:
    • Get Plex API key.
    • Get Spotify ID and API key.
    • Get Lidarr API key.
  3. Run with poetry (cd spotiplex && poetry install, poetry run spotiplex --help)
  4. Follow CLI prompts

Setup (Docker Version)

Note: Tested only on Linux, Docker version 24.0.5. Other environments are "unsupported", but issues can be reported.

  1. docker pull 0xchloe/spotiplex:latest
  2. touch spotiplex.env
  3. Copy the contents of default.env from this repo to your new .env file, and edit as needed.
  4. docker run --env-file spotiplex.env 0xchloe/spotiplex
  5. Container will run sync of Lidarr lists and manually specified lists on initial start, and every day at midnight if CRON_SCHEDULE is not set

Dependencies

Using python-plexapi, spotipy, rtoml, typer, supercronic, httpx

Upcoming Planned Features

  • Add to Plex-Playlist-Manager (See above)

Known Issues

  1. Some Spotify Playlists, especially auto-generated and non-public ones, may not be accessible via API, resulting in 404 errors.
  2. Occasional track errors in certain playlists. The script will continue and import the rest of the playlist, noting any issues.

Disclaimer

I am not responsible for how you utilize this script, nor am I responsible for your usage of the Spotify API, in or outside of conjunction with this script. Please read the Spotify TOS and Spotify Developer TOS carefully. This script is neither endorsed nor supported by Spotify. All uses of this script are at your own risk. Please buy the music you enjoy.

About

A python script/app to sync Spotify Playlists into Plex (optionally via Lidarr)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

 
 
 

Contributors