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
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
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
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
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
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
0ee644d252
#154 : use lambdas when deleting elements from containers
2016-01-14 19:42:49 +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
Andrey Prygunkov
f6587d3299
#143 : store Script objects and templates directly in container
2016-01-05 23:47:59 +01:00
Andrey Prygunkov
3e89638b39
refactor: replaced "time(NULL)" with an utility function
2016-01-01 14:57:48 +01:00
Andrey Prygunkov
04c3e0d263
#138 : use "nullptr" instead of "NULL"
2015-12-30 16:35:07 +01:00
Andrey Prygunkov
321c7efa41
#130 : moved parts from module "Util" into new module "FileSystem"
2015-12-22 22:01:03 +01:00
Andrey Prygunkov
99d8cee0db
#126 : class BString supports initialization via assignment
...
which makes the code clearer.
2015-12-20 23:46:22 +01:00
Andrey Prygunkov
9e2d8544da
#126 : full use of class BString
...
1) replaced characters arrays with class BString through the whole
program. The string formatting code has become much cleaner.
2) class Util returns error message via CString instead of character
buffers.
3) few more places to use CString.
2015-12-19 18:43:52 +01:00
Andrey Prygunkov
558fce9b47
#126 : replaced C-style strings with class "CString"
...
: replaced all data members.
2015-12-12 16:36:25 +01:00
Andrey Prygunkov
ec17d119a1
#115 : put all external headers together
...
into “nzbget.h”
2015-11-19 23:51:02 +01:00
Andrey Prygunkov
70ccfd9802
normalized whitespace formatting
...
1) removed trailing spaces and tabs;
2) replaced occasional leading spaces with tabs.
2015-11-05 23:45:19 +01:00
Andrey Prygunkov
bf49f16d7c
#103 : renamed global variables
2015-11-01 21:42:35 +01:00
Andrey Prygunkov
1fb21b330e
#103 : normalized (renamed) acronyms
2015-10-30 23:54:37 +01:00
Andrey Prygunkov
5adb50274e
#103 : renamed local, member variables and function parameters
2015-10-27 22:37:23 +01:00
Andrey Prygunkov
5f52512a5f
fixed #71 : crash on reload if a queue-script is running
2015-08-12 21:10:49 +02:00
Andrey Prygunkov
ca0af70d53
#60 : active queue-scripts indicated in webui
...
- the number of active (and queued) scripts are shown in the status
dialog in web-interface; this new row is hidden if no scripts are
queued;
- active queue scripts accounts for activity indicator in web-interface
(rotating button);
- new field “QueueScriptCount” in API-method “status” indicates number
of queue-scripts queued for execution including the currently running.
2015-08-11 22:43:25 +02:00
Andrey Prygunkov
24fd4e8c15
#26 , #60 , #64 , #70 : corrected file permissions
2015-08-11 22:31:59 +02:00
Andrey Prygunkov
1e64a7d453
#60 : new download status to indicate queue script activity
...
- new values for field “Status” in method “listgroups”: QS_QUEUED,
QS_EXECUTING;
- QS_QUEUED means that nzb is queued for processing by a queue-script;
- QS_EXECUTING means for that nzb a queue script is currently running;
- indication in web UI: status “QS-QUEUED” (gray) or “QUEUE-SCRIPT”
(green).
2015-08-11 22:27:41 +02:00
Andrey Prygunkov
8a03c64021
#26 : executing queue scripts for URLs
...
- queue-scripts are now also called for failed URLs;
- new queue event “URL_COMPLETED” with possible values: FAILURE,
SCAN_SKIPPED, SCAN_FAILURE;
- queue scripts are not called when URL was successfully fetched and
added queue; event “NZB_ADDED” is fired in this case;
2015-08-11 18:46:43 +02:00
Andrey Prygunkov
002547fde5
#26 : passing DupeKey, DupeMode and DupeScore to queue- and pp-scripts
...
- new env. parameters passed to queue-scripts: NZBNA_DUPEKEY,
NZBNA_DUPEMODE, NZBNA_DUPESCORE;
- new env. parameters passed to pp-scripts: NZBPP_DUPEKEY,
NZBPP_DUPEMODE, NZBPP_DUPESCORE.
2015-07-27 19:12:38 +02:00
Andrey Prygunkov
4cc2beaaca
#26 : new queue-script event "NZB_DELETED"
...
- when an nzb is deleted from queue and moved to history the
queue-scripts are called with event “NZB_DELETED”.
- no scripts are called if items are deleted permanently without
putting to history or if the history is completely disabled. This is
because queue-scripts are executed asynchronously and at the time the
script is executed the item must exist (either in queue or in history)
in order to pass item info to the script.
2015-07-24 19:45:44 +02:00
Andrey Prygunkov
5d24697b0c
refactor: reworked declaration of global objects (singletones)
2015-05-22 20:28:05 +00:00
Andrey Prygunkov
934c9e23ba
refactor: new directory "extension" to hold all extension script related modules
2015-05-21 18:42:33 +00:00