Plex-Grouch is a smart trash cleaner for Plex, ensuring your NAS devices are connected before cleaning. If a NAS is missing, Oscar gets grumpy and refuses to take out the trash. 😡
- Protects your media: Only cleans trash when all NAS devices are online.
- User-controlled NAS selection: Pick the folders you want to monitor.
- Automated hourly cleanup: Uses
systemdto run every hour. - Logging included: View logs in
/var/log/plex-grouch.log.
git clone https://github.com/henroFall/plex-grouch.git && cd plex-grouch && sudo chmod +x ./install.sh && sudo ./install.shIf you are already running as root, you can omit sudo:
git clone https://github.com/henroFall/plex-grouch.git && cd plex-grouch && chmod +x ./install.sh && ./install.shPlex-Grouch requires a Plex API Token to interact with your Plex server. Follow these steps to get it:
- Open Plex in a web browser and log in.
- Right-click anywhere on the page and select Inspect (or press
F12in most browsers). - Go to the Network tab.
- Refresh the page (
F5) and look for requests toplex.tv. - Click on any request and find the
X-Plex-Tokenin the Headers section. - Copy this token and provide it when prompted during installation.
- Check logs:
If running as root:
sudo cat /var/log/plex-grouch.log
cat /var/log/plex-grouch.log
- The NAS directories are stored in
/etc/plex-grouch.conf. - The Plex API Token is stored in
/etc/plex-grouch.envafter installation. - To update the Plex API Token manually, edit
/etc/plex-grouch.envand restart the service:If running as root:sudo systemctl restart plex-grouch.service
systemctl restart plex-grouch.service
To completely remove Plex-Grouch, run this one-liner:
wget https://raw.githubusercontent.com/henroFall/plex-grouch/main/uninstall.sh && sudo chmod +x uninstall.sh && sudo bash uninstall.shIf running as root:
wget https://raw.githubusercontent.com/YOUR_USERNAME/plex-grouch/main/uninstall.sh && chmod +x uninstall.sh && bash uninstall.sh