diet-plex
Great for users with huge libraries.
A crazy bash script that deletes all duplicate metadata entries in Plex. Leaving only the display cover and art intact and downsizing the DB.
The script is optimized and aligned to work with MHA/PTS/PG systems. You can edit it to suit your needs.
Good to know:
It will unfortunately delete manually uploaded posters as those aren't recognized by PMS to be default posters.
Getting started
Download script
cd /path/ && git clone https://github.com/morganzero/diet-plex/
Make it executable
chmod +x /path/diet-plex/dietplex.sh
Usage
Run script
bash /path/diet-plex/dietplex.sh
Follow the instructions in the script.
The script will calculate the size of your database and then clean out all duplicate entries of metadata right away. When finished it will ask you to clean out additional weight from: ~/PhotoTranscode
, HAMA, and Synced items that perhaps you or your users have forgotten to remove yourselves.
Enjoy!
Support
If you want to support me (does not equal development):
or
A big thank you goes out to Ritualist for all the help. And also to Suspense for inspiring me to make one of my own.