some new features, improvements and config options #67
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
⚠️ failed deletion
✨ successful 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 to
shortenedFilePath = part_info['file'][0]
)