new config options
DEBUG_RUN to quickly write decisions.log
SCORE_VIDEOBITRATE
SCORE_AUDIOCHANNELS
REQUIRED_TO_ALLOW_PROCESSING one of the files has to contain one of the given parameters to allow processing, for example, to only remove files if a dual audio version is available (require .DUAL. or .MULTI. in one of the files) or only if a good quality version is available (require 1080p)
better regex for deletefiles.sh, previous one wouldn't match all filenames properly
a run script that can be used for full automation (cronjob)
made the console output easier to read by shortening output and using emojis
✨ successful deletion
⚠️ failed deletion
✅ keep file
☑️ ignore/skip file
❌ delete file
🆔 file id
Something that might be an issueshortenedFilePath = '/' + '/'.join(part_info['file'][0].split('/')[-3:]) will cut out the last 3 parts of the path.
For example /path/to/the/mount/Movies/stuff.mkv would show as /mount/Movies/stuff.mkv
This is supposed to make the output easier to read by removing uninteresting stuff from the path, but if the path is less than 3 folders deep it will most likely throw an error.
It probably also doesn't work on Windows Plex servers due to the backward slashes.
Maybe remove this part before merging. (easiest way is to change it to shortenedFilePath = part_info['file'][0])
dependency updates
new config options DEBUG_RUN to quickly write decisions.log SCORE_VIDEOBITRATE SCORE_AUDIOCHANNELS REQUIRED_TO_ALLOW_PROCESSING one of the files has to contain one of the given parameters to allow processing, for example, to only remove files if a dual audio version is available (require .DUAL. or .MULTI. in one of the files) or only if a good quality version is available (require 1080p)
better regex for deletefiles.sh, previous one wouldn't match all filenames properly
a run script that can be used for full automation (cronjob)
made the console output easier to read by shortening output and using emojis ✨ successful deletion ⚠️ failed deletion ✅ keep file ☑️ ignore/skip file ❌ delete file 🆔 file id
shortenedFilePath = '/' + '/'.join(part_info['file'][0].split('/')[-3:])
will cut out the last 3 parts of the path. For example /path/to/the/mount/Movies/stuff.mkv would show as /mount/Movies/stuff.mkv This is supposed to make the output easier to read by removing uninteresting stuff from the path, but if the path is less than 3 folders deep it will most likely throw an error. It probably also doesn't work on Windows Plex servers due to the backward slashes. Maybe remove this part before merging. (easiest way is to change it toshortenedFilePath = part_info['file'][0]
)