Andrey Prygunkov
|
5473e57b10
|
fixed: if an external program (unrar, pp-script, etc.) could not be started, the execute-function has returned code 255 although the code -1 were expected in this case; this could break designed post-processing flow
|
2013-03-10 22:19:46 +00:00 |
|
Andrey Prygunkov
|
57b5d40851
|
when post-processing-parameters are passed to the post-processing script a second version of each parameter with a normalized parameter-name is passed in addition to the original parameter name; in the normalized name the special characters <*> and <:> are replaced with <_> and all characters are passed in upper case; this is important for internal post-processing-parameters (*Unpack:=yes/no) which includes special characters
|
2013-03-07 16:45:41 +00:00 |
|
Andrey Prygunkov
|
d3dd8dc686
|
fixed a compilation warning
|
2013-03-03 20:48:14 +00:00 |
|
Andrey Prygunkov
|
382faa49cb
|
added new option <InterDir> to put intermediate files during download into a separate directory (instead of storing them directly in destination directory (option <DestDir>); when nzb-file is completely (successfully) downloaded, repaired (if neccessary) and unpacked the files are moved to destination directory (option <DestDir> or <CategoryX.DestDir>); intermediate directory can significantly improve unpack performance if it is located on a separate physical hard drive
|
2013-03-01 20:32:17 +00:00 |
|
Andrey Prygunkov
|
749b4d3083
|
when a history item is post-processed again and the archive files were previously deleted because of option <UnpackCleanupDisk> the post-processing goes directly to script stage; if the archive files were kept, the full post-processing including unpack is performed instead
|
2013-02-28 20:23:50 +00:00 |
|
Andrey Prygunkov
|
30d792b35b
|
when running external programs (such as unrar or post-processing script) the full path to the program is not neccessary since the search in system PATH is now performed
|
2013-02-09 10:58:14 +00:00 |
|
Andrey Prygunkov
|
940448ffae
|
added built-in unpack: 1) rar and 7-zip formats are supported (via external Unrar and 7-Zip executables); 2) new options <Unpack>, <UnpackPauseQueue>, <UnpackCleanupDisk>, <UnrarCmd>, <SevenZipCmd>; 3) web-interface now shows progress and estimated time during unpack (rar only; for 7-Zip progress is not available due to limitations of 7-Zip) 4) when built-in unpack is enabled, the post-processing script is called after unpack and possibly par-check/repair (if needed); 5) for nzb-files containing multiple collections (par-sets) the post-processing script is called only once, after the last par-set; 6) new parameter <NZBPP_UNPACKSTATUS> passed to post-processing script; 7) if the option <AllowReProcess> is enabled the post-processing-script is called after each par-set (as in previous versions); 8) example post-processing script updated: removed unrar-code, added check for unpack status; 9) new field <UnpackStatus> in result of RPC-method <history>; 10) history-dialog in web-interface shows three status: par-status, unpack-status, script-status; 11) with two built-in special post-processing parameters <*Unpack:> and <*Unpack:Password> the unpack can be disabled for individual nzb-file or the password can be set; 12) built-in special post-processing parameters can be set via web-interface on page <PP-Parameters> (when built-in unpack is enabled).
|
2013-02-06 22:04:50 +00:00 |
|
Andrey Prygunkov
|
2fcfbc2e1a
|
added new option <NzbAddedProcess> to setup a script called after a nzb-file is added to queue
|
2012-11-16 20:50:56 +00:00 |
|
Andrey Prygunkov
|
8b1aff33fe
|
added remote command <--reload/-O> and JSON/XML-RPC method <reload> to reload configuration from disk and reintialize the program; the reload can be performed from web-interface
|
2012-09-27 20:13:25 +00:00 |
|
Andrey Prygunkov
|
3e81a03087
|
refactor: corrected inconsistent include of <config.h>
|
2012-06-23 18:58:56 +00:00 |
|
Andrey Prygunkov
|
4a069266d8
|
added new field <name> to nzb-info-object. It is initially set to the cleaned up name of the nzb-file. The renaming of the group changes this field. All RPC-methods related to nzb-object return the new field, the old field <NZBNicename> is now deprecated. The option <MergeNZB> now checks the <name>-field instead of <nzbfilename> (the latter is not changed when the nzb is renamed). New env-var-parameter <NZBPP_NZBNAME> for post-processing script.
|
2012-06-11 15:09:03 +00:00 |
|
Andrey Prygunkov
|
2631550c2f
|
corrected the address of Free Software Foundation in copyright notice; corrected the spelling of authors name (caused by new rules for translating of cyrillic names to latin alphabet / english spelling)
|
2011-05-24 12:52:41 +00:00 |
|
Andrey Prygunkov
|
08f86cbcf9
|
added priorities; new action <I> for remote command <--edit/-E> to set priorities for groups or individual files; new actions <SetGroupPriority> and <SetFilePriority> of RPC-command <EditQueue>; remote command <--list/-L> prints priorities and indicates files or groups being downloaded; ncurses-frontend prints priorities and indicates files or groups being download; new command <PRIORITY> to set priority of nzb-file from nzbprocess-script; RPC-commands <ListGroups> and <ListFiles> return priorities and indicate files or groups being downloaded
|
2011-03-12 11:48:13 +00:00 |
|
Andrey Prygunkov
|
646ddb4ddb
|
fixed: elapsed time for active post-processing job was calculated incorrectly if the post-processor queue was paused; that could cause the interruption of active par-job when using the option <ParTimeLimit>
|
2010-02-08 16:08:10 +00:00 |
|
Andrey Prygunkov
|
31940d8f58
|
nzbprocess-script (option <NZBProcess>) can now set category and post-processing parameters for nzb-file
|
2010-01-29 09:34:44 +00:00 |
|
Andrey Prygunkov
|
1a9451fe61
|
command <pause post-processing> now not only pauses the post-processing queue but also pauses the current post-processing job (par-job or script-job); however the script-job can be paused only after the next line printed to screen
|
2009-12-08 21:50:53 +00:00 |
|
Andrey Prygunkov
|
0722417e0b
|
added a new return code <95/POSTPROCESS_NONE> for post-processing scripts for cases when pp-script skips all post-processing work (typically upon a user's request via a pp-parameter); modified the example post-processing script to return the new code instead of a error code when a pp-parameter <PostProcess> was set to <no>
|
2009-09-20 15:24:19 +00:00 |
|
Andrey Prygunkov
|
dc9e938510
|
Added message log to history items; new field <Log> is returned by RPC-command <history> for each item
|
2009-09-19 15:49:08 +00:00 |
|
Andrey Prygunkov
|
feadf59fa0
|
added history: new option <KeepHistory>, new remote subcommand <H> for commands <L> (list history entries) and <E> (delete history entries), new RPC-command <History> and subcommand <HistoryDelete> for command <EditQueue>; changed the result code returning status <ERROR> for postprocessing script from <1> to <94>
|
2009-06-30 16:08:41 +00:00 |
|
Andrey Prygunkov
|
4b538b419a
|
refactoring: extended the meaning of DowloadQueue-object, which now contains file queue, post-job queue, list of completed post-jobs and list of nzb-infos; post-jobs now have references to nzb-infos, what eiliminates duplicate infos; since file queue and post-job queue are now accessed via DownloadQueue only one locking mechanism for both queues is needed
|
2009-05-24 14:26:53 +00:00 |
|
Andrey Prygunkov
|
57b5afa676
|
fixed: environment block was not passed correctly to child process, what could result in seg faults (windows only)
|
2009-05-16 18:46:51 +00:00 |
|
Andrey Prygunkov
|
191b8531be
|
option <TaskX.Process> now can contain parameters which must be passed to the script
|
2009-05-08 16:57:12 +00:00 |
|
Andrey Prygunkov
|
bbdfb2b4f2
|
added modifier <O> to command <-E/--edit> for editing of post-processor-queue; following subcommands are supported: <+/-offset>, <T>, <B>, <D>; subcommand <D> supports deletion of queued post-jobs and active job as well; deletion of active job means the cancelling of par-check/repair or terminating of post-processing-script (including child processes of the script); updated remote-server to support new edit-subcommands in XML/JSON-RPC
|
2009-05-03 17:14:52 +00:00 |
|
Andrey Prygunkov
|
10269dc779
|
added new return code (93) for post-processing script to indicate successful processing; that results in cleaning up of download queue if option <ParCleanupQueue> is active
|
2009-04-23 20:39:07 +00:00 |
|
Andrey Prygunkov
|
8c4b5c7f6b
|
fixed small memory leak appeared if process-script could not be started
|
2009-01-15 17:45:21 +00:00 |
|
Andrey Prygunkov
|
4f4e7f8b61
|
fixed: the output of process-scripts was not always received (bug introduced in r250)
|
2008-12-02 22:32:02 +00:00 |
|
Andrey Prygunkov
|
5993408eff
|
added command <Process> to scheduler option <TaskX.Command>; replaced options <PostLogKind> and <NzbLogKind> with new option <ProcessLogKind> which is now used by all scripts (PostProcess, NzbProcess, TaskX.Process)
|
2008-12-01 22:50:35 +00:00 |
|
Andrey Prygunkov
|
18e3dfb448
|
added the passing of nzbget-options to postprocess/nzbprocess scripts as environment variables
|
2008-12-01 18:38:54 +00:00 |
|
Andrey Prygunkov
|
42718d3f7a
|
added support for postprocess-parameters; new subcommand <O> of remote command <E> to add/modify pp-parameter for group (nzb-file); new XML-/JSON-RPC-subcommand <GroupSetParameter> of method <editqueue> for the same purpose; updated example configuration file and example postprocess-script to indicate new method of passing arguments via environment variables
|
2008-11-29 23:42:24 +00:00 |
|
Andrey Prygunkov
|
63cfccab40
|
fixed: sometimes program hanged on starting postprocess/nzbprocess in server (not daemon) mode (bug introduced in r250)
|
2008-11-25 18:26:53 +00:00 |
|
Andrey Prygunkov
|
df7503cb3b
|
changed the method to pass arguments to postprocess/nzbprocess: now using environment variables (old method is still supported for compatibility with existing scripts)
|
2008-11-22 21:04:14 +00:00 |
|
Andrey Prygunkov
|
b823535880
|
added workaround to avoid hangs in child processes (by starting of postprocess or nzbprocess), observed on uClibC based systems
|
2008-11-13 16:50:02 +00:00 |
|
Andrey Prygunkov
|
acaa23fe88
|
changed exit codes for post-process-scripts (old values were too big for POSIX)
|
2008-10-25 21:44:43 +00:00 |
|
Andrey Prygunkov
|
b3d472f88d
|
extended the communication between nzbget and post-process-script and improved delayed parcheck; collections are now detected even if parcheck is disabled; two return codes allow to repair current collection or all collections
|
2008-10-21 22:15:30 +00:00 |
|
Andrey Prygunkov
|
6801fea2b1
|
added support for delayed par-check/repair (post-process-script can request par-check/repair using special exit code)
|
2008-10-18 18:52:58 +00:00 |
|
Andrey Prygunkov
|
f48e5396e4
|
removed trailing slash in directory name passed to nzbprocess-script (to be similar to postprocess-script)
|
2008-10-12 11:21:34 +00:00 |
|
Andrey Prygunkov
|
8fd31eeb4b
|
added script-processing of files in incoming directory to allow automatic unpacking and queueing of compressed nzb-files; new options <NzbProcess> and <NzbLogKind>
|
2008-09-29 21:57:28 +00:00 |
|
Andrey Prygunkov
|
5fea19aa88
|
added scheduler; new options <TaskX.Time>, <TaskX.WeekDays>, <TaskX.Command>
|
2008-09-25 21:19:24 +00:00 |
|
Andrey Prygunkov
|
e9370792f5
|
avoided the short-time unpausing of queue between parcheck and postscript if both options <ParPauseQueue> and <PostPauseQueue> are enabled
|
2008-08-10 11:04:15 +00:00 |
|
Andrey Prygunkov
|
9f4d2d8924
|
added options <ParPauseQueue> and <PostPauseQueue>
|
2008-08-09 19:18:45 +00:00 |
|
Andrey Prygunkov
|
e28aa2ee67
|
added the categories: new option <AppendCategoryDir>; new switch <-K>; new command <K> in switch <-E>; new parameter in XML-/JSON-RPC-command <editqueue>; new parameter to post-process-scripts; scan the subdirectories of incoming nzb-directory; automatic moving of already downloaded files after the changing of category
|
2008-07-20 13:47:50 +00:00 |
|
Andrey Prygunkov
|
b4211a57e6
|
fixed compilation error on PC-BSD
|
2008-04-08 17:39:26 +00:00 |
|
Andrey Prygunkov
|
695e3a912c
|
improved error-handling on start of post-process-script
|
2008-04-05 14:14:31 +00:00 |
|
Andrey Prygunkov
|
cb10f39db3
|
fixed a deadlock in postprocessor (could hang the program)
|
2008-03-26 18:35:00 +00:00 |
|
Andrey Prygunkov
|
dfa839c4e0
|
added the automatic termination (killing) of post-process-script on server's shutdown
|
2008-03-23 15:26:07 +00:00 |
|
Andrey Prygunkov
|
876fee3bc5
|
added field <ID> to post-queue-items (for feature usage)
|
2008-03-23 14:48:56 +00:00 |
|
Andrey Prygunkov
|
8cd59b9ab5
|
improved error-reporting by starting of post-process-script and on par-failures
|
2008-03-22 14:10:37 +00:00 |
|
Andrey Prygunkov
|
1c333e68c2
|
added the saving of script-output in post-job-object and the returning of the output by command <postqueue> via XML-RPC and JSON-RPC
|
2008-03-18 17:53:45 +00:00 |
|
Andrey Prygunkov
|
173622fea1
|
implemented the output-redirection for post-process-scripts on windows
|
2008-03-17 16:44:14 +00:00 |
|
Andrey Prygunkov
|
0970c0bc52
|
added the redirecting of post-process-script's output to log; new option <PostLogKind> to specify the default message-kind for unformatted log-messages
|
2008-03-14 22:42:55 +00:00 |
|