-
Notifications
You must be signed in to change notification settings - Fork 15
/
CHANGELOG
438 lines (289 loc) · 14.8 KB
/
CHANGELOG
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
v0.14:
o Fix NZB archives containing their own NZB file (with the same name)
hanging hellanzb
o Quiet warnings on Python 2.6.
o Now strips whitespace from NZB data, fixes slow downloads on some
servers
o Fixed hellanzb recursively sending NNTP GROUP commands with a group
value with extra whitespace
o Fixed download rate > 0 after downloads were finished (broken in
0.12)
o Fixed rar password support (-P option)
o .cbr files are no longer treated as normal rars (extracted)
o Fixed defunct post processor processes on Solaris (Thanks andy at
stormsail)
o Fixed a stall towards the end of a download situation when using
multiple servers pools:
When one server pool couldn't establish any connections to the server
and had queued segments particular to that pool (either during
automatic failover or due to being a fill server), and the other
server pools finished their queues, the download would mistakenly be
considered 'finished'. However decoding would never finish, causing
the stall.
o New remote call: log
(From hellanzb.py --help)
log logLvl logMsg Add the specified message to the HellaNZB
logfile. LogLvl should be INFO, WARNING, or
ERROR.
(Patch by ashleywbone)
o hellanzb now looks for the hellanzb.conf file in the following
places/order:
local paths: ./, ./etc/, or ~/.hellanzb/
system paths: sys.prefix, /etc, /etc/hellanzb
o Report SAXException information when an invalid NZB could not be
parsed (noticed by TU)
o Fixed a potential lockup with multiple defineServers that occurs
when an article does not exist on one server and failed the CRC
check on another server (thanks jon at sd - 6, others)
o Added optional support for the optcomplete library
v0.13:
o Can now optionally store encoded article segments in memory,
instead of disk. This can improve performance and CPU usage in
some cases. Set CACHE_LIMIT to a non zero value to enable.
Hellanzb.CACHE_LIMIT = -1 # for an unlimited sized cache, or
Hellanzb.CACHE_LIMIT = '100MB' # for a certain size
o Added SSL NNTP support: defineServer ssl=True. (patch
submitted by Oscar H)
o Fixed the PostProcessor on Windows, which would produce the
error:
exceptions.ValueError: The usePTY parameter is not supported
on Windows.
o Fixed download problems on Windows, which would repeatedly
produce errors such as:
Archive segment: 2 does not have a valid CRC/yend line!
(thanks Ryan van Barneveld)
o Fixed total archive time reported at the end of PostProcessing
(downloadTime was tallied as 0)
o Fixed the Hellanzb.CATEGORIZE_DEST option: it was impossible to
disable in v0.12
o Fixed PostProcessor handling of filenames containing double quotes
o Fixed the error message:
exceptions.TypeError: errBack() takes exactly 2 arguments (1 given)
occurring during failed newzbin download attempts (thanks mke & JJ2)
o Fixed the following error triggered after failed yenc CRC checks:
File "hellanzb-0.12/Hellanzb/NZBLeecher/ArticleDecoder.py", line 685,
in assembleNZBFile
decodedSegmentFile = open(nzbSegment.getDestination(), 'rb')
exceptions.IOError: [Errno 2] No such file or directory:
This issue was introduced in v0.11.
v0.12:
o Fixed v3.newzbin.com's DirectNZB support which was broken as of
2007-02-18
o Improved downloader performance (CPU used and max download speed),
especially for faster connections (such as over 40mb/s)
o Added support for libnotify notifications (patch submitted by Ruben
Fonseca)
o No longer hiding exceptions; many were previously only shown in the
debug log file
o Now printing the 'Transferred MB in Time at Speed (Archive)' message
when the NZB is finished downloading, as opposed to when the archive
has finished decoding. The difference could be significant on slower
CPUs/ and or faster connections
v0.11:
o Fixed the error:
ImportError: cannot import name daemonize
with Twisted 2.5
o Added the Hellanzb.CATEGORIZE_DEST option. Enabling it saves archives
into a sub directory of DEST_DIR named after their newzbin.com
category (when queued using the enqueuenewzbin XMLRPC call); e.g. Apps,
Movies, Music
o enqueuenewzbin now downloads gzipped newzbin.com NZBs via the new v3
DirectNZB interface (Thanks DBordello and Thomas Hurst)
o Added support for fillservers (by priority)
o Now requeueing segments to other servers when they fail yDecode CRC
checks
o Added optional support for converting MacBinary files
o Now properly parsing v3.newzbin.com NZB names
o Fixed the enqueuenewzbin error:
exceptions.AttributeError: 'module' object has no attribute 'b64encode'
on Python 2.3
o No longer overwriting pre-existing files during rar extraction
o Fixed handling of NZB files with invalid segment number and bytes
attributes
o Fixed .zip files in the QUEUE_DIR constantly being rescanned for NZBs
o Fixed a couple issues when antiIdle is disabled, including reconnection
failures after connections are lost
o antiIdle disabled connections now avoid connecting at startup, and
disconnect immediately when there is nothing left to download. i.e. they
only are connected to the server when necessary. antiIdle disabled fill
servers only connect when they have something to download
o Windows compatibility changes -- hellanzb has been reported to work on
Windows as of the 0.11 changes (thanks hax)
v0.10:
o Multiple servers are now represented with different colors in the scroller
output
o Added the ability to run an external handler script on an archive after
post processing
o Now including duplicate files during par2 repair
o All filename paths in the config file now expand the "~" character to the
user's home directory
o Added support for compressed (.zip) nzbs (thanks Freddie)
o Fixed the following IOError occurring on malformed NZBs that include multiple
<segment>s of the same segment number for a particular <file> (particularly
those NZBs created by newzleech.com):
IOError: [Errno 2] No such file or directory:
'/nzb/daemon.temp/download-tmp/hellanzb-tmp-archvie.file0172.segment0001_ENC'
o Added the ability to disconnect from the usenet server when idle (set
antiIdle = 0)
o Fixed defineServer's bindTo option
o Added the enqueueurl RPC call (downloads the NZB at the specified URL)
o Better handling of slow NZB copies to the queue directory (won't queue the
NZB until it's fully copied)
o Rars within rars are no longer deleted by the PostProcessor in some cases
o A few misc. lockup/stability related fixes
v0.9:
NZBLeecher:
o New feature: smartpar. hellanzb will now skip downloading extra par2/par1
files. If the post processor finds the archive requires more par data for
repair, hellanzb will automatically force the download of a minimal amount of
extra pars immediately
Daemon:
o New remote call: 'setrarpass'
(From hellanzb.py --help)
setrarpass nzbid pass Set the rarPassword for the NZB with the specified ID
o Rar passwords are now saved in between CTRL-Cs.
o No longer leaving enqueuednewzbin/dequeued/cancelled NZBs in the TEMP_DIR
o Added the Hellanzb.UMASK option to force umask in daemon mode
v0.8:
Daemon:
o Fixed a nasty bug with the 'clear' RPC call -- it was deleting all files in
the QUEUE_DIR (not just queued .nzb files). This bug prevented hellanzb from
working nicely with shared QUEUE_DIRs (such as your web browser's download
dir. This technique was even recommended in hellanzb's OS X install
document), in fact, it could cause unwanted data loss (thanks yak)
o Quicker and more robust newzbin.com downloads (enqueuenewzbin call)
NZBLeecher:
o Added duplicate file detection/handling. Previously, NZB files containing
duplicate files could cause the downloader to stop (at the end of an archive)
under certain situations
o Fixed a decoder bug (causing corrupt downloads) affecting some uuencoded
posts (and potentially some rare yEncoded posts)
o Fixed a yDecode specific decoder bug (causing corrupt downloads)
o Fixed a couple nasty bugs in the new downloader code (submitted by
bobmckenzie, thanks!)
o Fixed "not1not2" KeyError exception in the multiple server pool automatic
failover code (submitted by bobmckenzie, thanks again!)
o Fixed a bug causing the downloader to stop and the scroller to scroll
excessive lines, after a certain situation where hellanzb was paused twice
o Correctly handling NZB files with out of order segments, previously this
could cause corruption (thanks spinez)
o Fixed a bug causing the downloader to stop (at the end of an archive) after
pausing/continuing with bandwidth throttling enabled (MAX_RATE set to
a non zero value)
v0.7:
Daemon:
o Added the -D option to run the hellanzb queue daemon as an actual unix daemon
process (forks and exits)
o Changed most of the RPC calls to return the output of a list or status
call
o Added the enqueuenewzbin RPC call, downloads the NZB with the specified NZB ID
from www.newzin.com, as long as you've included your newzbin login information
in hellanzb.conf
o Changed the RPC list call to show NZB ids by default
o RPC status call now shows queued MB, ETA, NZB ids and the value of
Hellanzb.MAX_RATE (if MAX_RATE is greater than 0)
o Invalid NZB files weren't being removed from the list of current downloads
seen in the RPC status call (fixed)
o Fixed an odd case where a segment with no articleData could prevent the queue
from continuing onto the next NZB. Also fixed a couple other possible bugs
that might have caused hellanzb to deadlock in between NZBs
NZBLeecher:
o Optimized the downloader. Using approximately 2-4% less CPU on an Athlon
2600+, FreeBSD 4.10
o Added automatic failover -- multiple server pools (defineServer lines) will
now automatically requeue articles totally missing from their respective
servers for redownloading on other server pools (Thanks very much
Rubberneck!)
PostProcessor:
o Fixed the defunct process bug affecting some Linux distributions (thanks
georgek)
o No longer using /bin/file for identifying rars. Running /bin/file via twisted
seems to have triggered a twisted bug where it wouldn't allow the /bin/file
process to exit cleanly (on some if not all platforms)
o Added assembly support for split .ts files, recognizes patterns such as:
hello.001.TS hi.0001.ts
hello.002.TS hi.0002.ts
hi.0003.ts
ArticleDecoder:
o Optimized the yDecoder. Benchmarks show it using approximately 6-8% less CPU
on an Athlon XP 2600+, FreeBSD 4.10
o Added support for optionally yDecoding via the yenc python module (wraps a
yDecoder written in C). This provides better performance than the stock
yDecoder. Requires yenc-0.3, available from:
http://www.hellanzb.com/hellanzb-content/yenc-0.3.tar.gz
v0.6:
Daemon:
o Added XMLRPC calls to control an already running hellanzb, similar to nzbq
and related programs. hellanzb, when invoked with a 'remote-call', will send
xmlrpc calls to the main hellanzb process:
(From hellanzb.py --help)
remote-calls (via XML-RPC):
cancel Cancel the current download and move the current NZB to
Hellanzb.TEMP_DIR
clear Clear the current nzb queue. Specify True as the second
argument to clear anything currently downloading as
well (like the cancel call)
continue Continue downloading after being paused
dequeue nzbid Remove the NZB with specified ID from the queue
down nzbid [shift] Move the NZB with the specified ID down in the queue.
The optional second argument specifys the number of
spaces to shift by (Default: 1)
enqueue nzbfile Add the specified NZB file to the end of the queue
force nzbid Force hellanzb to begin downloading the NZB with the
specified ID immediately, interrupting the current
download
last nzbid Move the NZB with the specified ID to the end of the
queue
list [showids] List the current queue. Specify True as the second
argument to include the NZB ID in the listing
maxrate [newrate] Return the Hellanzb.MAX_RATE (maximum download rate)
value. Specify a second argument to change the value --
a value of zero denotes no maximum rate
move nzbid index Move the NZB with the specified ID to the specified
index in the queue
next nzbid Move the NZB with the specified ID to the beginning of
the queue
pause Pause downloading
process archivedir Post process the specified directory. The -p option is
preferable -- it will do this for you, or use the
current process if this xml rpc call fails
shutdown Shutdown hellanzb. Will quietly kill any post
processing threads that may exist
status Return hellanzb's current status text
up nzbid [shift] Move the NZB with the specified ID up in the queue. The
optional second argument specifys the number of spaces
to shift by (Default: 1)
PostProcessor:
o Multiple par2 file sets are now handled correctly (fixed)
o Added config option DELETE_PROCESSED to delete the processed sub directories
after successful post processing
o Post processing now also occurs on sub directories (and walks down the tree
of sub directories)
o Post processing will now be automatically resumed upon restart of hellanzb,
if previously interrupted (such as via CTRL-C)
o Timing unrar/par2 commands
o par2 left-over repair ('.1') files now moved to PROCESSED_SUBDIR
NZBLeecher:
o Fixed bandwidth throttling to be a global value applying to all defineServer
lines in the config file. Set the Hellanzb.MAX_RATE value to enable
o Supporting Usenet servers not requiring authorization
o Better handling of invalid groups (failed nntp GROUP commands) (thanks
No1UKnow)
o Now overwrites (re-downloads) 0 byte files
o Fixed connect timeouts permanently killing connections (blank download status
lines, requiring CTRL-C & restart to un-blank)
o Quicker automatic reconnections when they are lost
ArticleDecoder:
o Fixed the 0 CRC problem occurring with some files/servers (e.g.: 'CRC mismatch
00000000 != 3B0B8959') (Thanks drak0 and Weavus)
Misc:
o Fixed darwin port unrar dependency
o Other small bug fixes/changes
v0.5:
o NZB downloader rewritten from scratch (and some pyNewsleecher code by Freddie
<[email protected]>) to use the twisted framework. With new NZB
downloader status ticker
o Automatic reconnection and anti idle of NNTP server connections
o Bandwidth throttling
o Can resume interrupted (CTRL-C, etc) downloads, at the segment level
o Improved logging