hyperlink / plex-tv-cleanup

Automatically delete watched TV shows on Plex
MIT License
5 stars 0 forks source link
nodejs plex plex-media-server plex-tv tv

Plex TV Show Cleanup

NodeJs script to delete watched TV episodes from Plex. You can configure a whitelist to prevent deletion.

Standard - JavaScript Style Guide

Installation

Step 1

Install NodeJs and plex tv cleanup on your Plex server.

npm i -g plex-tv-cleanup

Step 2

Create a new JSON file in ~/.plex-tv-cleanup-config.json and fill it with your information like below:

Example:

{
  "plex": {
    "hostname": "127.0.0.1",
    "username": "<Your Username>",
    "password": "<Your Password>",
    "serverName": "Mac Mini",
    "managedUser": {
        "name": "Family",
        "pin": "1234"
    }
  },
  "dnd": [
    "/Volumes/SavedTVShows",
    "iZombie",
    "The Expanse",
    "Into the Badlands"
  ]
}

Usage

Run ./plex-tv-cleanup to execute it.

Dry run to see what it would delete run ./plex-tv-cleanup --dry-run

License

MIT