Page 1 of 1

Support for NZB in .bz2/.lzma/.xz?

Posted: July 15th, 2015, 5:38 am
by Nyanderful
Probably rarely used, but should be trivial to add since .gz is already being handled?

https://docs.python.org/3/library/bz2.html
https://docs.python.org/3/library/lzma.html

Re: Support for NZB in .bz2/.lzma/.xz?

Posted: July 15th, 2015, 7:07 am
by shypike
lzma is not supported in Python 2.6 and 2.7, so that won't happen.
bz2 wouldn't be that much effort, but as you said yourself, the user base would be tiny.
Do you know any indexers that use .bz2 ?

Re: Support for NZB in .bz2/.lzma/.xz?

Posted: July 18th, 2015, 12:34 am
by Nyanderful
There's a backport for Python 2: https://pypi.python.org/pypi/backports.lzma
I'm not sure if it's possible in Python to automatically detect if it exists or not, and just use it if it does.

I don't know of any index which uses bz2, but perhaps no-one will until a client supports it? Indexes would benefit the most from better compression: less bandwidth and storage costs, after all.

Re: Support for NZB in .bz2/.lzma/.xz?

Posted: July 18th, 2015, 6:01 am
by shypike
OK, I have added .bz2 support (0.8.0Alpha4).
The rest will have to wait until later.

Re: Support for NZB in .bz2/.lzma/.xz?

Posted: July 19th, 2015, 4:06 am
by Nyanderful
Cool! Thank you shypike! :)