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
e91f37d566
#351 : protect vars depended on condition
...
to avoid race conditions and lock ups
2019-01-22 00:11:13 +01:00
Andrey Prygunkov
57f4d2864b
#351 : refactor: use same name for cond var and mutex
2019-01-21 23:40:12 +01:00
Andrey Prygunkov
491d816bff
#591 : save only changed queue data during downloading
...
This is a speed optimisation for large queue.
2019-01-14 17:53:51 +01:00
Andrey Prygunkov
43c9bb78f3
#597 : use ConditionVar instead of std:condition_variable
2019-01-06 13:14:56 +01:00
Andrey Prygunkov
32a6bf18ad
#597 : reverted changes to Thread-unit
...
Due to compatibility issues on older platforms (issues discovered on
ARMv7 with GCC 5.2 but may not be limited to this platform) the usage
of C++11 thread- and synchronisation facilities has been reverted to
previous custom OS-specific implementation.
2019-01-06 12:50:28 +01:00
Federico Cuello
1f3067c1e3
Pause PrePostProcessor::Run thread using condition variables
...
Wait until new jobs or a Stop signal instead of looping, in a way that
doesn't reduce responsiveness.
2019-01-03 12:29:56 +01:00
Andrey Prygunkov
e54ffbaaaa
#562 : fixed: failures are being moved to DestDir
...
This only happenned for downloads without par2-files and without
archives.
2018-07-16 22:48:41 +02:00
Andrey Prygunkov
2d049f1904
#562 : refactor: avoiding multiple dereferences
2018-07-16 21:22:58 +02:00
Andrey Prygunkov
5e15677218
#541 : better duplicate handling of urls
2018-07-12 21:19:09 +02:00
Andrey Prygunkov
14c5a1caf7
#541 : delayed fetching of nzbs added via urls
2018-07-07 18:16:40 +02:00
Andrey Prygunkov
758ce4047b
#525 : force par-check for nzbs without archives
2018-06-19 22:37:45 +02:00
Andrey Prygunkov
d9cb0026bd
#498 : case insensitive pp-parameters
2018-01-25 17:38:35 +01:00
Andrey Prygunkov
d4886ac7d1
#461 : removed option "BrokenLog"
2017-10-29 12:51:49 +01:00
Andrey Prygunkov
af111adbde
#461 : removed options "SaveQueue" and "ReloadQueue"
2017-10-28 16:17:45 +02:00
Andrey Prygunkov
54eb8e1291
#448 : new option "SkipWrite"
...
replaces compiler define “SKIP_ARTICLE_WRITING”. 2) renamed option
“Decode” to “RawArticle”. 3) option “CrcCheck” moved from section
“Download Queue “ into section “Check and Repair”
2017-09-28 17:31:47 +02:00
Andrey Prygunkov
a4cca673dc
fixed #398 : crash between post-processing steps
2017-06-16 17:51:28 +02:00
Andrey Prygunkov
fb9b84a23b
#371 : wait for direct rename completion before direct unpack
...
Redo accidentally undone 5df06a2626 .
2017-06-16 16:45:55 +02:00
Andrey Prygunkov
5dcca7294f
#371 : respect PostStrategy when starting another direct unpack
...
to avoid running way too many direct unpack jobs at the same time.
2017-06-06 15:32:24 +02:00
Andrey Prygunkov
77cabd7bce
#371 : do not direct unpack if article decoding is disabled
...
via option Decode=no.
2017-05-30 21:19:38 +02:00
Andrey Prygunkov
8ffd6c24fe
#364 : do not reorder files on nzb parse errors
2017-05-23 20:53:11 +02:00
Andrey Prygunkov
14b40d6712
#362 : discard unneeded data after direct rename
...
Now also discarding data when download completes without direct rename
being able to process files (due to download errors).
2017-05-23 19:39:09 +02:00
Andrey Prygunkov
5df06a2626
#371 : wait for direct rename completion before direct unpack
2017-05-22 22:08:09 +02:00
Andrey Prygunkov
015b3be461
#371 : better cleanup on cancelling unpack
...
Deleting destination if it contains only hidden files.
2017-05-18 22:00:45 +02:00
Andrey Prygunkov
08de827d7b
refactor: removed unneeded type casts
2017-05-18 18:43:08 +02:00
Andrey Prygunkov
3a07dd378a
#371 : restart direct unpack after program reload
...
When program is reloaded during direct unpack the unpack restarts after
one (any) inner file is downloaded.
2017-05-08 23:27:49 +02:00
Andrey Prygunkov
ff02b53ed0
#371 : better handling of cancelling direct unpack
2017-05-06 23:45:31 +02:00
Andrey Prygunkov
61af2b3446
#371 : integrated direct unpack into pp-workflow
2017-05-05 21:57:52 +02:00
Andrey Prygunkov
160b274ce8
#371 : new module "DirectUnpack"
...
without implementation and with a new failing unit test.
2017-05-03 21:30:35 +02: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
9f7d6655b2
#364 : logging for file reordering
2017-05-01 17:31:14 +02:00
Andrey Prygunkov
62b3d47b43
#362 : redesigned renaming
...
Spread RenameInfo into FileInfo and NzbInfo to make the state easier to
save on disk
2017-04-28 23:55:41 +02:00
Andrey Prygunkov
4107536c03
#364 : implemented file reordering
...
- reordering inner files after adding nzb to queue;
- reordering inner files after adding direct renaming;
- new command “GroupSortFiles” in api-method “editqueue”.
2017-04-22 20:13:45 +02:00
Andrey Prygunkov
6efefe3780
fixed #350 : sleep mode no longer works on Windows
2017-03-15 20:13:55 +01:00
Andrey Prygunkov
e7c47f523a
fixed #348 : queue was not saved after deleting of queued post-jobs
2017-03-13 18:04:44 +01:00
Andrey Prygunkov
5c8be152f4
fixed #347 : possible crash at the end of post-processing
2017-03-13 17:58:15 +01:00
Andrey Prygunkov
f2073ff920
#327 : better handing of damaged par2-files in par-renamer
...
If par-renamer can’t load par2-file another par2-file is downloaded and
par-renamer tries again.
2017-01-17 00:23:29 +01:00
Andrey Prygunkov
ab0723adda
#288 : rar-rename only if unpack is enabled
2016-12-14 18:50: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
d2d20f29c1
#291 : better handling of shutdown/reload
...
for post-processing jobs
2016-10-18 21:52:30 +02:00
Andrey Prygunkov
cac25ed290
#291 : distinguishing pp-stages par-renaming and rar-renaming
...
to better handling temporary pause.
2016-10-15 13:37:34 +02:00
Andrey Prygunkov
d72071c8ed
#291 : temporary pause during post-processing
...
Options ParPauseQueue, UnpackPauseQueue, PostPauseQueue work properly.
2016-10-15 13:00:52 +02:00
Andrey Prygunkov
ba05dfc202
#291 : tweaking balanced pp-startegy
...
Other job can be run only during repair stage but not during
verification stage.
2016-10-14 11:20:57 +02:00
Andrey Prygunkov
b1b5405809
#291 : new option "PostStrategy" to configure multi-post-processing
...
instead of option “ParExclusive”.
2016-10-14 00:07:13 +02:00
Andrey Prygunkov
99fcd164ac
#291 : smoother transition between pp-stages
...
without intermediate “pp-queued” state shown in web-interface
2016-10-13 00:07:44 +02:00
Andrey Prygunkov
2e18021e08
#291 : new option "ParExclusive"
...
to configure simultaneous post-processing of a second item if currently
performing par-check/repair for the first item in pp-queue
2016-10-12 00:22:34 +02:00
Andrey Prygunkov
2e19382ccc
#291 : multi post-processing
...
During par-check/repair another pp-item can be post-processed at the
same time, as long as it doesn’t require par-check/repair.
2016-10-12 00:13:50 +02:00
Andrey Prygunkov
a6dc20dc8e
#291 : refactor: made par-checker non-global
...
and more similar to other post-processing stages.
2016-10-11 20:43:11 +02:00
Andrey Prygunkov
db7bc4314f
#288 : rar-rename as a separate post-processing stage
...
Made rar-rename a separate post-processing stage which runs after
par-repair, in order to restore archive file names after possible
repair stage (which could rename files back to obfuscated names if
rar-rename were run before par-repair).
2016-09-28 22:22:18 +02:00