Add support for pre/post download scripts
Created by: srussel
I would like an option for wget2 to run a script before each download. The exit status determines whether to download the file. Similar to the -user_condition option in pavuk.
In pavuk, a number of options are passed to the script: -url -parent -level -size -date
Alternatively the arguments could be passed via environment variables similar to transmissionbt post download scripts. This would be better as it does not require the script to parse the command line.
Pavuk also has a -follow_cmd option that runs a script after each file has been downloaded.