Andrey Prygunkov
adf3e05e1d
#351 : refactor: utility function "Sleep"
...
to replace direct calls to “usleep”, with parameter in milliseconds
instead of microseconds.
2019-01-22 22:23:40 +01:00
Andrey Prygunkov
e3bd94189a
#351 : refactor: moved changeable state into new Unit "WorkState.cpp"
...
from Unit “Options.cpp”. The latter now contains only program options
(which cannot be changed without reload).
2019-01-22 21:57:00 +01:00
Andrey Prygunkov
d93769021a
#501 : fixed race condition in queue script coordinator
2018-01-29 23:54:30 +01:00
Andrey Prygunkov
ba1e51a8d8
#362 : new queue event after direct rename
...
Queue-event NZB_NAMED, sent after the inner files are renamed
2017-05-01 17:48:20 +02:00
Andrey Prygunkov
bfee7c55cd
#50 : confirmation for commands marked as dangerous
2017-03-21 23:22:54 +01:00
Andrey Prygunkov
e839db7107
#50 : pass not yet saved options to script
2017-03-20 20:59:34 +01:00
Andrey Prygunkov
ffb16aa7bb
#50 : progress dialog for script execution log
...
New API-method “logscript”.
2017-03-20 20:30:19 +01:00
Andrey Prygunkov
a3b0b7675e
#50 : execute custom commands for scripts
...
New API-method “startscript”.
2017-03-17 20:24:14 +01:00
Andrey Prygunkov
7450b97871
#319 : scheduler scripts in option "Extensions"
...
Scheduler scripts can now be selected in option “Extensions” if the
scripts provide default time definition.
2016-12-20 22:22:09 +01:00
Andrey Prygunkov
9f7e0ee972
#304 : safer termination of scripts
2016-12-19 19:33:38 +01:00
Andrey Prygunkov
ae7719e948
#319 : auto migration of old script settings
2016-12-16 21:03:59 +01:00
Andrey Prygunkov
9a92896678
#319 : unified extension scripts settings
...
- new option “Extension” as replacement for options “PostScript”,
“QueueScript”, “ScanScript”, “FeedScript”;
- renamed “CategoryX.PostScript” to “CategoryX.Extensions”;
- renamed “FeedX.PostScript” to “FeedX.Extensions”.
2016-12-14 20:34:14 +01:00
Andrey Prygunkov
80debf521a
#299 : removed parameter "offset" from api-method "editqueue"
...
When needed the “offset” is now passed within parameter “Args” as
string.
2016-10-31 15:58:02 +01:00
Andrey Prygunkov
070054a814
fixed #261 : hanging after marking as BAD from queue script
2016-08-12 22:28:37 +02:00
Andrey Prygunkov
2b43695a01
#231 : path to original nzb-file passed to scripts
...
Passed to queue-scripts in env. var “NZBNA_QUEUEDFILE” and to
post-processing-scripts as “NZBPP_QUEUEDFILE”.
2016-07-07 21:14:40 +02:00
Andrey Prygunkov
f591e1680d
#225 : corrected event cleanup
...
events “NZB_MARKED” could be ignored when they shouldn’t
2016-06-02 19:40:05 +02:00
Andrey Prygunkov
0e0d7be16b
#225 : new queue script event NZB_MARKED
...
; new env var NZBNA_MARKSTATUS passed to queue scripts.
2016-05-30 23:46:37 +02:00
Andrey Prygunkov
92ae10e338
#148 : fixed crash in queue script handling
...
If multiple queue scripts were queued and the nzb-file was deleted
before all scripts were executed the program may crash.
2016-05-29 16:02:40 +02:00
Andrey Prygunkov
85340831cc
#203 : exit code for feed scripts
2016-04-18 19:49:35 +02:00
Andrey Prygunkov
44cf69b093
107: refactor: removed function "SetScript()" from Script-class
...
use SetArgs() instead.
2016-03-27 18:24:13 +02:00
Andrey Prygunkov
5948729b87
#185 : guarded containers
...
Using guarded lists to automatically unlock containers.
2016-03-18 21:45:29 +01:00
Andrey Prygunkov
f973388879
#185 : use guards with private mutexes
...
Use guard objects to automatically unlock private mutexes when leaving
current scope.
2016-03-16 22:37:19 +01:00
Andrey Prygunkov
ca088ef2e6
#163 : also saving messages for nzbs in history
...
If an nzb was already removed from queue (put into history), the
messages were not added to it’s log. Fixed.
2016-03-13 19:42:05 +01:00
Andrey Prygunkov
22b1ae55e5
#148 : unique smart pointers for queue scripts
2016-03-13 00:08:31 +01:00
Andrey Prygunkov
1a74695126
#148 : unique smart pointers for download containers
2016-03-11 22:49:14 +01:00
Andrey Prygunkov
27fc3b594b
#181 : multiple script directories
...
Option “ScriptDir” now accepts multiple directories (separated with
comma or semicolon).
2016-03-03 19:09:22 +01:00
Andrey Prygunkov
f3f7fbd0de
#176 : updated copyright notice in source files
...
- added link to http://nzbget.net ;
- replaced FSF Post address with a web link;
- removed unusable subversion-tags;
- updated year.
2016-03-01 19:45:07 +01:00
Andrey Prygunkov
8a344c97c9
#176 : changed order of member declarations
2016-03-01 00:20:14 +01:00
Andrey Prygunkov
831c73d28d
#176 : removed aligning of class member names
2016-02-29 19:31:40 +01:00
Andrey Prygunkov
bfa5027bf9
#175 : in-class member initializers
2016-02-28 19:53:37 +01:00
Andrey Prygunkov
b414526d02
#172 : using vector of strings in script controller
...
instead of dynamic array of c-style strings
2016-02-25 19:27:24 +01:00
Andrey Prygunkov
548753aa69
#172 : using vector of strings in SplitCommandLine
...
instead of dynamic array of c-style strings.
2016-02-23 22:07:30 +01:00
Andrey Prygunkov
6aead41e6f
#126 : using CharBuffer instead of raw pointers in LoadFileIntoBuffer
2016-02-23 21:59:10 +01:00
Andrey Prygunkov
9dfa66ac3e
fixed #171 : queue-scripts not called for failed URLs
...
if the scripts were set in category’s option “PostScript”.
2016-02-18 23:03:52 +01:00
Andrey Prygunkov
9da07e1e54
#168 : unique smart pointers for global variables
...
and restructured main module “nzbget.cpp”
2016-02-17 22:03:33 +01:00
Andrey Prygunkov
1162c89e77
#167 : prefer stack objects
2016-02-17 22:02:41 +01:00
Andrey Prygunkov
b55190e52f
#162 : change destination directory from queue-script
...
Queue-scripts can now change destination after download is completed
and before unpack.
2016-02-02 23:31:36 +01:00
Andrey Prygunkov
4fbff8cd25
closes #163 : queue scripts save messages into nzb-log
2016-02-01 22:22:56 +01:00
Andrey Prygunkov
ec87c3c1f8
#162 : multiple paths in global option "DestDir"
...
are now supported too.
2016-02-01 00:21:36 +01:00
Andrey Prygunkov
3ae8b5ac95
#136 : fixed: scripts were not found
2016-01-24 19:07:25 +01:00
Andrey Prygunkov
d95e389583
#156 : fixed memory access error
2016-01-22 00:36:40 +01:00
Andrey Prygunkov
8f84132218
#156 : new class "CharBuffer" for temporary buffers
...
Replaced everywhere plain “char”-buffers with new class. Avoid using
“malloc/free”.
2016-01-17 00:06:27 +01:00
Andrey Prygunkov
34771792ac
#126 : removed "CString::Capacity()" as it was error source
2016-01-16 19:02:27 +01:00
Andrey Prygunkov
17024eb0e5
#126 : replaced "char*" with "CString" at few more places
2016-01-16 16:31:45 +01:00
Andrey Prygunkov
421de1013f
#154 : use lambdas when searching in containers
2016-01-14 19:43:33 +01:00
Andrey Prygunkov
0ee644d252
#154 : use lambdas when deleting elements from containers
2016-01-14 19:42:49 +01:00
Andrey Prygunkov
ac1bd3d07c
#154 : use lambdas when sorting containers
2016-01-13 20:09:36 +01:00
Andrey Prygunkov
ef4a72d383
#152 : eliminated dereferences in for-range loops using “begin()” and “end()” template functions in “nzbget.h”
2016-01-13 19:44:40 +01:00
Andrey Prygunkov
b32b4c0691
#152 : for-range loops with iterators
2016-01-12 00:30:17 +01:00
Andrey Prygunkov
32400a810f
#143 : store download objects directly in containers
...
…where possible.
2016-01-08 22:29:44 +01:00