PlexTidy is a small python3 script to cleanup your transcode directory to allow processing on small (ram)disks.
- Use it directly through Python3(.5+), visit the GitHub Release! page to download the script.
pip3 install scandir --upgrade
*/1 * * * * python3 plextidy.py -o [OPTIONS]
The variables are honored to configure your instance:
-t, --disk-threshold
= Disk full threshold (Default 700 (e.g. 70%))-i,--disk-interval
= Period in seconds between disk threshold checks. The default interval is 60 seconds. Higher quality source media and a smaller disk size require more frequent threshold checks A higher disk threshold (speficied by the user) will also require more frequent checks;-p,--disk-path
= Path to the temporary working directory used by the Plex New Transcoder. The transcode_path can be modified from the Plex web through Settings -> Server -> General -> Advanced;-f,--file-regex
= The temporary file regex (default should be fine);-l,--log-level
= Logging Level DEBUG, INFO, WARNING, ERROR (DEBUG is not advised);-d,--log-dir
= Log directory (default script dir) for logrotating.-o,--one-off
= Run only once, in-case you run from cron (default=false)
If you need help for additional configuration/automation/persistency please check my Blog Post
I'd like to thank https://gitlab.com/wjb/Plex-Free-Mem for the initial idea (No UNIX support).
If you have any problems with or questions about this image, please contact me through a GitHub issue!.