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

Want something added? Ask for it here.
Post Reply
Nyanderful
Newbie
Newbie
Posts: 4
Joined: July 15th, 2015, 5:31 am

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

Post 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
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

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

Post 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 ?
Nyanderful
Newbie
Newbie
Posts: 4
Joined: July 15th, 2015, 5:31 am

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

Post 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.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

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

Post by shypike »

OK, I have added .bz2 support (0.8.0Alpha4).
The rest will have to wait until later.
Nyanderful
Newbie
Newbie
Posts: 4
Joined: July 15th, 2015, 5:31 am

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

Post by Nyanderful »

Cool! Thank you shypike! :)
Post Reply