No description
- Python 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .gitignore | ||
| clean_playlists.py | ||
| README.md | ||
| requirements.txt | ||
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:
- Are older than PLAYLIST_RETENTION_DAYS
- Have not been played in the last PLAYLIST_RETENTION_DAYS
- Are not favorited by any users