/migrate-plex-to-jellyfin

Migrate watched status from Plex to Jellyfin

Primary LanguagePython

Migrate Plex to Jellyfin

WIP, project to migrate Plex watched statusses to Jellyfin, based on the file name of the media :)

Getting started

Install requirements (in virtualenv):

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Command example:

python3 migrate.py --insecure --debug --plex-url https://plex.test.com:32400 --plex-token 123123123 --jellyfin-url https://jellyfin.test.com --jellyfin-token 123123123 --jellyfin-user user
Usage: migrate.py [OPTIONS]

Options:
  --plex-url TEXT        Plex server url  [required]
  --plex-token TEXT      Plex token  [required]
  --jellyfin-url TEXT    Jellyfin server url
  --jellyfin-token TEXT  Jellyfin token
  --jellyfin-user TEXT   Jellyfin user
  --secure / --insecure  Verify SSL
  --debug / --no-debug   Print more output
  --no-skip / --skip     Skip when no match it found instead of exiting
  --help                 Show this message and exit.

Using Docker image

In the folder, build the image using:

docker build -t migrate-plex-to-jellyfin:local .

then run it using the following command:

docker run migrate-plex-to-jellyfin:local --insecure --debug --plex-url https://plex.test.com:32400 --plex-token 123123123 --jellyfin-url https://jellyfin.test.com --jellyfin-token 123123123 --jellyfin-user user