Andrey Prygunkov
|
6252f2c8c1
|
updated pp-script "EMail.py": 1) to use the new nzb-log feature; 2) new option "SendMail" allows to choose if the e-mail should be send always or on failure only
|
2015-02-27 19:20:15 +00:00 |
|
Andrey Prygunkov
|
708f819182
|
updated pp-script "Logger.py" to use the new nzb-log feature
|
2015-02-27 19:18:22 +00:00 |
|
Andrey Prygunkov
|
459a79a1f1
|
improved pp-script EMail.py: now it can send time statistics (thanks to JVM for the patch)
|
2014-08-27 16:27:40 +00:00 |
|
Andrey Prygunkov
|
0fe503658b
|
pp-script "EMail.py" now supports mail server relays (thanks l2g for the patch)
|
2014-07-20 16:20:24 +00:00 |
|
Andrey Prygunkov
|
fc20bcca91
|
pp-script "EMail.py" now takes the status of previous pp-scripts into account and report a failure if any of the scripts has failed
|
2014-07-04 19:50:11 +00:00 |
|
Andrey Prygunkov
|
48446367f4
|
post-processing scripts now have two new parameters: env. var "NZBPP_STATUS" indicates the status of download including the total status (SUCCESS, FAILURE, etc.) and the detail field (for example in case of failures: PAR, UNPACK, etc.); env. var "NZBPP_TOTALSTATUS" is equal to the total status of parameter "NZBPP_STATUS" and is provided for convenience (to avoid parsing of "NZBPP_STATUS"); the new parameters provide a simple way for pp-scripts to determine download status without a guess work needed in previous versions; parameters "NZBPP_PARSTATUS" and "NZBPP_UNPACKSTATUS" are now considered deprecated (still passed for compatibility); updated script "EMail.py" to use new parameters "NZBPP_TOTALSTATUS" and "NZBPP_STATUS" instead of "NZBPP_PARSTATUS" and "NZBPP_UNPACKSTATUS"
|
2014-05-28 22:19:39 +00:00 |
|
Andrey Prygunkov
|
169c56f105
|
implemented general scripts concept which is an extension of the post-processing scripts concept initially introduced in v11; the general scripts concept applies to all scripts used in the program: scan-script, queue-script and scheduler-script (in addition to post-processing scripts); option "NzbProcess" renamed to "ScanScript"; option "NzbAddedProcess" renamed to "QueueScript"; option "DefScript" and "CategoryX.DefScript" renamed to "PostScript" and "CategoryX.PostScript" (options with old names are recognized and automatically converted on first settings saving); new option "TaskX.Script"; old option "TaskX.Process" kept for scheduling of external programs not related to nzbget (to avoid writing of intermediate proxy scripts); scan-script, queue-script and scheduler-script now work similar to post-processing scripts: -scripts must be put into scripts-directory; -scripts can be configured via web-interface and can have options; -multiple scripts can be chosen for each scripts-option, all chosen scripts are executed; -program and script options are passed to the script as env. variables;; renamed default directory with scripts from "ppscripts" to "scripts"; script signature indicates the type of script (post-processing, scan, queue or scheduler); one script can have mixed signature allowing it to be used for multiple purposes (for example a notification script can send a notification on both events: after adding to queue and after post-processing); result of RPC-method "configtemplates" has new fields "PostScript", "ScanScript", "QueueScript", "SchedulerScript" to indicate the purpose of the script; queue-script (formerly NzbAddedProcess) has new parameter "NZBNA_EVENT" indicating the reason of calling the script; currently the script is called only after adding of files to download queue and therefore the parameter is always set to "NZB_ADDED" but the queue-script can be called on other events in the future too
|
2014-05-06 15:36:15 +00:00 |
|