plextool

Maintenance helpers for a Plex Media Server: refresh and scan libraries, reorder Recently Added, find duplicates and stale content, audit libraries, copy watched state, back up playlists and manage subtitles.

Install with pip install plextool. New here? Start with the Quickstart. Every command also explains itself on the command line:

$ plextool --help
$ plextool recent --help

Commands that change anything do a dry run unless --commit is given.