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
Federico Cuello
1f89c037b9
fix compile warning: -Wunused-variable
...
Don't define variables only used for debuggin when debug is not enabled.
2018-12-21 15:01:00 +01:00
Andrey Prygunkov
cdc5c5515f
fixed #412 : unpack using password file doesn't work on Windows
...
Also added more debug output for future use.
2017-07-12 20:48:59 +02:00
Andrey Prygunkov
0a73a0c31f
fixed #387 : asterix passed as parameter to extension scripts
...
(Windows only)
2017-06-07 18:51:16 +02:00
Andrey Prygunkov
725e2c7376
#371 : fixed zombies after reload during unpack
2017-05-09 20:36:48 +02:00
Andrey Prygunkov
20f4f3020b
#371 : 6b546394b2: corrected stdin redirection
2017-05-05 21:56:54 +02:00
Andrey Prygunkov
6b546394b2
#371 : added stdin-redirecting support
2017-05-03 21:39:57 +02:00
Andrey Prygunkov
e839db7107
#50 : pass not yet saved options to script
2017-03-20 20:59:34 +01:00
Andrey Prygunkov
9f7e0ee972
#304 : safer termination of scripts
2016-12-19 19:33:38 +01:00
Andrey Prygunkov
e612257c28
#304 : graceful termination of scheduler scripts
...
If a script is running when the program must shutdown, the script
receives signal SIGINT (CTRL+BREAK on Windows) and has 10 seconds to
gracefully terminate until it is killed.
2016-11-15 19:22:52 +01:00
Andrey Prygunkov
e16cab67fb
#288 : ed4761db37: reverted std-input handling on Windows
2016-10-22 15:04:11 +02:00
Andrey Prygunkov
ed4761db37
#288 : unit and functional tests for encrypted rar files
2016-09-30 19:32:55 +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
e6344d36a7
#107 : new option "ShellOverride"
...
allows to configure path to python (bash, etc.); useful on systems with
non-standard paths; eliminating the need to change shebang for every
script; also makes it possible to put scripts on non-exec file systems.
2016-03-27 16:19:08 +02:00
Andrey Prygunkov
0b5168ed23
#194 : reworked script startup sequence
...
to use only async-signal-safe functions during forking.
2016-03-26 13:03:49 +01:00
Andrey Prygunkov
698edf1185
improved one info-message useful for troubleshooting
2016-03-25 21:53:19 +01:00
Andrey Prygunkov
737f059b3a
#193 : fixed for-range loops on guarded pointers
...
Range expression must be GuardedPtr. Dereferencing this object means
loosing the lock on pointer and therefore can’t be part of range
expression.
2016-03-25 20:29:25 +01: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
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
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
048add1dcf
#172 : vectors and smart pointers in script controller
...
instead of raw pointers
2016-02-25 22:44:33 +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
c96d2259ce
#168 : unique smart pointers for local variables
2016-02-17 22:03:33 +01:00
Andrey Prygunkov
26fea301e0
#136 : fixed crash on Windows
2016-01-22 00:37:49 +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
17024eb0e5
#126 : replaced "char*" with "CString" at few more places
2016-01-16 16:31:45 +01:00
Andrey Prygunkov
98cd5a8dbc
refactor: removed unneeded checks
2016-01-14 19:46: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
28897e4e79
#143 : store OptEntry and Category directly in containers
2016-01-04 19:42:47 +01:00
Andrey Prygunkov
be852d0a9b
#143 : using <CString> instead of <char*> in containers
2016-01-03 19:58:11 +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
65f2a0afe3
#136 : support for Unicode and extra long paths in par2-module
...
- par-renamer and par-checker both support Unicode paths and extra long
paths;
2015-12-29 01:54:19 +01:00
Andrey Prygunkov
449a048304
#136 : made class WString public for use from other modules
2015-12-28 14:45:01 +01:00
Andrey Prygunkov
920507c163
#136 : Unicode Windows-API when calling other programs
...
- use CreateProcessW;
- pass command-line in Unicode;
- pass environment in Unicode;
- if current directory is too long convert it to short path (8.3
notation); because CreateProcessW doesn’t support extra long path
(prefixed with “\\?\”) for current directory.
2015-12-28 11:00:32 +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
41c62dc413
#117 : better handling of command line when calling external programs (Windows)
...
Trailing slashes must be doubled. This in particular improves
compatibility with user-compiled “unrar”.
2015-11-30 19:38:59 +01:00
Andrey Prygunkov
9c3d6fadca
#117 : refactor: restructured Script-module
2015-11-30 19:33:13 +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
a9a6f1e2d4
#103 : manual corrections of variable names
2015-11-03 23:33:21 +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
2a9f9f8e98
#64 : implemented dupe matcher
...
Before scanning of dupe directories the directories are quickly checked
by dupe matcher. It determines if they contain or may contain the same
content. If the dupe checker detects a dupe containing different
content as the download being currently processed by par-checker, such
extra dupe is skipped to save time during dupe par scan.
2015-08-07 18:38:51 +02:00