This script aims to reduce the amount of things that get nuked for being incomplete by rather trying to go for completion and pointing out what's missing where.
The supplied dist config is hopefully enough to get the gist of what needs to be configured.
- Python 3
- SQLite3
- copy
config.yaml.dist
toconfig.yaml
- adjust
config.yaml
to match your environment regarding paths and settings - adjust
incompletes.tcl
if you want to use the eggdrop counterpart to match your paths - make sure your eggdrop loads
incompletes.tcl
if you choose to use it - set up a cronjob to run the incompletes checker regularly
# update incomplete symlinks every 5 minutes
*/5 * * * * /opt/scripts/maw-incompletes/incompletes.py --silent /opt/scripts/maw-incompletes/config.yaml SYSOP
# update incomplete symlinks and post about the status of the incompletes to IRC by abusing the TURGEN chain already configured in pzs-ng
0 */6 * * * /opt/scripts/maw-incompletes/incompletes.py /opt/scripts/maw-incompletes/config.yaml TURGEN
usage: incompletes.py [-h] [--silent] config chain
positional arguments:
config path to config file
chain the output destination of this announce
optional arguments:
-h, --help show this help message and exit
--silent no output to glftpd.log
When using --silent
the script will only print to stdout.
Without using --silent
the script will write all output to the specified chain
in glftpd.log
to make pzs-ng
pick it up and print to IRC.
Please complete the following releases:
/recent/movies-1080/Some.cool.Movie.2022.1080p.WEB.x264-GROUP lacks sample, was sent by someuser/somegroup.
/recent/movies-1080/Some.other.decent.Movie.2022.1080p.WEB.x264-GROUP lacks nfo/completeness, was sent by someuser/somegroup.
- Add .wmv as valid extension for sample
- Add cleanup of dead symlinks in incompletes folder
- Add support for diz/zip releases
- Only write to log/irc if there is anything to complete, reduce noise
- Consider dirs and files for complete check
- Add
skip_paths
option to exclude paths from being checked
- Initial release