Configure the use of unrar in LottaNZB preferences

Registered by Eskimo

I think that most users would like their files to be automatically unrared once the download is finished.
Thus, I think there should be an option to enable/disable this feature from HellaNZB's preferences panel.
It would only change the following lines in hellanzb.conf :
     Hellanzb.UNRAR_CMD = '/usr/bin/unrar'
     Hellanzb.SKIP_UNRAR = False (or True to disable...)

Blueprint information

Status:
Complete
Approver:
Severin H
Priority:
Low
Drafter:
Eskimo
Direction:
Needs approval
Assignee:
Severin H
Definition:
Approved
Series goal:
Accepted for 0.4
Implementation:
Implemented
Milestone target:
milestone icon 0.4
Started by
Severin H
Completed by
Severin H

Related branches

Sprints

Whiteboard

Lantash: I like this idea! I suggest adding something like this to the stand-alone mode preferences dialog:

[ ] Automatically extract downloads using: [/usr/bin/unrar__________] [ Browse... ]

An idea related to this blueprint came into my mind yesterday. What about bundling a ~100-byte-sized dummy RAR archive with LottaNZB, on which the application selected by the user will need to prove its abilities. This would be easy to implement and would prevent the user from chosing an application not capable of unraring downloads and getting an error later when HellaNZB tries to make use of it.

Selecting the unrar executable using a gtk.FileChooserDialog probably isn't a good idea, since browsing the /usr/bin directory turns out to be quite sluggish due to the number of files to display. What about replacing the "Browse..." button with "Suggest" and look for unrar and unrar-free using distutil's handy find_executable function?

Well actually, we don't need anything except for the checkbox, since the unrar executable *must* be installed on the user's sytem in order to be able to launch HellaNZB. And I can't imagine a user having an unrar command that doesn't do its job. The only case where this functionality might come handy a Ubuntu user not satisfied with how unrar-free does its job. But I could write a small patch for the Ubuntu package that makes LottaNZB automatically select "unrar" instead of "unrar-free" if available.

Lantash: Blueprint marked as implemented. unrar-free caused more problems on Ubuntu machines than it solved in LottaNZB 0.3.x. There were quite a few people complaining about broken RAR extraction due to unrar-free's limitations in terms of some new-fashioned RAR features. In LottaNZB 0.4, users are allowed to disable the automatic extraction of RAR files using /usr/bin/unrar, but unrar needs to be installed anyway.

Draky : just my 2 cents but to uncompress RAR multiple volumes, it is not unrar-free ;) you need unrar-nonfree so... Maybe LottaNZB can detect if the download is a multiple volume RAR...

Lantash: LottaNZB 0.4.1 depends on unrar by default and will automatically change unrar-free to the proprietary unrar.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.