How can I add command in qBittorrent to automatically extract compressed files after download is complete? I am new to Ubuntu and haven't gotten the hang of things quite yet.
How can I add command in qBittorrent to automatically extract compressed files after download is complete? I am new to Ubuntu and haven't gotten the hang of things quite yet.
There's no specific Ubuntu man page for qbittorrent, but I did find the home page, FAQ, wiki, and support forum.
The latter showed an option to Run an external program on torrent completion which would allow you to summon 7z or some other extraction app; 7z does just about all formats including ZIP and RAR, so that's my suggestion to use. To install it, run
sudo apt update && sudo apt upgrade && sudo apt install p7zip-full
.In Qbittorrent, choose Options then Download and check the tickbox for Run an external program on torrent completion, then give it an external CLI command line to extract the file, such as:
7z x *
This works for me with p7zip (or p7zip-full) installed - pay special attention to the -o section where there is no space between it and the target directory. It took me 5-6 tries until I noticed that 7z uses this syntax format (without space) for most switches: