How To: qBittorrent - Automatically Extract/unrar Upon Torrent Completion

Status
Not open for further replies.
Joined
Jun 22, 2017
Messages
8
Howdy Everyone,

I've started the transition away from uTorrent and my Windows machine and gone the FreeNAS route with qBittorrent.

Thanks to this forum post How To: Install qBittorrent in a jail I was able to get everything up and running smoothly.

However as we all know that not every torrent won't be a compressed ".rar" file and one of the features that I loved from uTorrent was the ability to automatically unrar the files like so:

Run this program when a torrent finishes:

"C:\Program Files\WinRAR\UnRAR.exe" x -r "%D\*" "%D"


Going through trials and tribulations and already having the qBittorrent jail created I performed the following:


pkg update
pkg upgrade


Then I installed "unrar"


pkg install unrar


Now we can go back to the qBittorrent web interface and select the following

Tools -> Options -> Downloads tab and select the check box where it says

Run external program on torrent completion

Then use this line to unrar after each torrent is done:


"/usr/local/bin/unrar" x -ibck -inul "%F/*.r*" "%F/"


Hope for whoever runs across this gets you where you need to go as it took me some time with trial an error figuring this out.


Enjoy,

molotov_kazic
 
Last edited:

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,374
Hi

This appears to have issues, if you have your media configured to download in a temp directory, then move it to a 'final' directory.

Is that my imagination or same issue for you?
 

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,374
Never mind, it seems to be behaving now, just after I'd done all this testing and snapshotting to try and consistently recreate it too.
 

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,374
I'm now having a new, odd issue with this particular jail, vs others.

I can't save in /media/download/!completed/ - the ! seems to be throwing it off.
Anyone else seen this?
I also tried setting it to
"/media/download/\!complete/"

No work sadly.
 

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,374
I have done further testing and I'm almost entirely convinced the "move to, when complete" code in 3.3.15 is broken - is anyone else seeing this?

I've entirely changed paths on my server, to some test paths
It's now /media/1/ /media/2/ and /media/3/
 

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,374
I can definitely confirm this UNRAR process is broken if your copy of qBit decides to move files at completion, anyone else?
 

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,374
Any way to make this delete after completion (yeah, it's working again)
 
Status
Not open for further replies.
Top