Home

Awesome

Media Cleaner for Jellyfin

Automatically delete played media files after specified amount of time. Works for movies and series.

Installation

Add repository with my plugins from jellyfin-plugin-repo.

Configuration

Configuration is pretty straightforward at plugin's page. Here's not so obvious things:

For the correct operation of the "Delete not played items" function, there are two possible configuration options for "Date added behavior for new content" in Jellyfin. Each option has its own drawbacks, depending on your setup:

  1. Leave it at the default value ("Use file creation date")
    • recently downloaded files can be deleted on the first cleanup run if your software (Radarr, download client, etc...) modifies the file creation date (like sets it from metadata of download or something).
  2. Change it to "Use date scanned into the library"
    • when using software that can update files at any time (Radarr, etc...), it is possible that the file will be updated after being played, and thus the creation date in Jellyfin will also be updated. It will not be deleted because the creation date will be later than the watch date.

Снимок экрана 2023-06-08 091645

Debugging

Define JellyfinHome environment variable pointing to Jellyfin distribution to be able to run debug configuration.