No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-03-07 04:50:29 +00:00
.gitignore Initial commit 2026-03-07 04:36:13 +00:00
clean_playlists.py Initial commit 2026-03-07 04:36:13 +00:00
README.md Update README.md 2026-03-07 04:50:29 +00:00
requirements.txt Initial commit 2026-03-07 04:36:13 +00:00

Create a .env file with the following fields:

Jellyfin Configuration

JELLYFIN_URL=http://localhost:8096

JELLYFIN_API_KEY=1234asdf

Cleanup Configuration

PLAYLIST_RETENTION_DAYS=14

Log level (DEBUG, INFO, WARNING)

LOG_LEVEL=INFO

Create a virtual environment

python3 -m venv venv

Activate the environment, install requirements

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

Run the cleaning script

python3 clean_playlists.py

Optional argument:

python3 clean_playlists.py -y will automatically delete all playlists which meet all of the following criteria:

  1. Are older than PLAYLIST_RETENTION_DAYS
  2. Have not been played in the last PLAYLIST_RETENTION_DAYS
  3. Are not favorited by any users