Many downloads come packed as RAR or ZIP archives, and Sonarr or Radarr cannot import them packed. Unpackerr unpacks such archives for you: for the downloads of Sonarr, Radarr, Lidarr and Readarr, or in any folder you name. Unpackerr is available on Dedicated services. It has no web page: you set it up in a text file. The steps were tested with Unpackerr 0.15.2 on our test service.
1. Install Unpackerr
In the Client Area, open your service and the Apps tab. Click Install at Unpackerr. Its details only show the buttons RESTART, STOP, REINSTALL, UNINSTALL and UPDATE.
Right after the installation, Unpackerr runs but does nothing yet: it needs to know what to watch.
2. Open the Configuration File
The settings are in the file .config/unpackerr/unpackerr.conf in your home folder. Edit it in one of these ways:
- over SSH with
nano ~/.config/unpackerr/unpackerr.conf(save with Ctrl+O, Enter, exit with Ctrl+X); - or download it with FileZilla, edit it on your computer and upload it again: Download files from server via FTP – FileZilla.
Lines that start with # are comments and are ignored; the file explains every setting in such comments. Keep a copy of the file before you change it.
Unpackerr sees the folders of your service under /data. In the file, your home folder is /data/username/, with your user name, and your downloads folder is /data/username/downloads. A path such as /home/username/… or /downloads/… does not work: Unpackerr writes no such file or directory to its log.
3. Unpack Everything in a Folder
To unpack all archives that arrive in one folder, add these lines at the end of the file, with your user name and folder:
[[folder]] path = "/data/username/downloads/unpack"
Save the file and click RESTART at Unpackerr in the Client Area; Unpackerr reads its settings only when it starts.
From then on, put a folder with an archive into unpack. About a minute later, Unpackerr unpacks it into a new folder next to it, with _unpackerred at the end of the name. The archive itself stays. For example, a folder Big Buck Bunny (2008) with a ZIP of 65 MB is unpacked into Big Buck Bunny (2008)_unpackerred about a minute after you put it in.
The _unpackerred folder also gets a small text file that lists what was unpacked; you can delete it with the files. Useful options for the [[folder]] block, all described in the comments of the file:
move_back = true: put the unpacked files into the original folder instead of a new_unpackerredfolder.extract_path = "/data/username/…": unpack into another folder.delete_after = "10m"withdelete_original = true: delete the archives 10 minutes after unpacking. Do not use it for torrents you still seed: the torrent client needs the archives to keep seeding.
Unpackerr waits until a folder has not changed for a minute, so that it does not unpack a download that is still running. It only notices folders that arrive after it started; for older folders, move them out and back in.
4. Unpack the Downloads of Sonarr and Radarr
For Sonarr, Radarr, Lidarr or Readarr, fill in their block in the same file, for example for Radarr:
[[radarr]] url = "address of Radarr" api_key = "API key of Radarr"
The API key is in Radarr under Settings → General → Security. Unpackerr then checks the queue of Radarr every two minutes and unpacks finished downloads before Radarr imports them. The comments in the file list the other options, such as paths for the download folder. Restart Unpackerr after the change.
An empty [[sonarr]] or [[radarr]] header without url is ignored; the log then says Missing Radarr URL, which is harmless.
5. Check What Unpackerr Does
By default Unpackerr writes no log file you can read. To get one, add this line near the top of the file, below quiet = false, and restart Unpackerr:
log_file = "/config/unpackerr.log"
The log is then .config/unpackerr/unpackerr.log in your home folder. Every minute it shows the queue, for example Queue: 0 waiting, 1 queued, 0 extracting, and for each folder lines such as Tracking New Item and Extraction Started. Show its end over SSH with:
tail -n 20 ~/.config/unpackerr/unpackerr.log
Buttons in the Client Area
- RESTART: needed after every change of the configuration file. STOP stops Unpackerr.
- UPDATE installs the newest version.
- REINSTALL installs Unpackerr again, UNINSTALL removes it. The Client Area asks you to confirm both. Keep a copy of your configuration file before you reinstall.
