In my first UnRAID article, I went through my experience installing and configuring UnRaid - you can read it here. Overall, the setup was very easy and only took one afternoon to complete.
After setting UnRAID up, I wanted to start adding useful media applications on the NAS. I wanted these applications to automate the discovery, downloading and moving/renaming of media (movies and tv shows).
One of the most popular applications that does this is called Couch Potato. Couch Potato allows you to:
Download movies automatically, easily and in the best quality as soon as they are available.
As I've heard great things about Couch Potato from some friends and reading about it online, I decided to give it a go. After downloading the Docker image, I attempted to set it up. The initial configuration was fine, but I was simply not able to get it connecting to Deluge (a torrent client I had set up earlier). After spending hours trying fix the issue and trying to find other people who ran into the same issue, I gave up and looked for an alternative.
The search for an alternative lead me to Sonarr, a Couch Potato alternative. The setup for Sonarr was very easy and worked perfectly with Deluge! I also installed Radarr which is a TV show equivalent for Sonarr which was just as easy to set up. I also used Jackett which was easily integrated with Sonarr/Radarr to enable searching for torrents.
Installation and Configuration
I'm going to step through installing and configuring the following applications which will allow you to automate the discovery, downloading and moving/renaming of your media! This requires:
Before starting, make sure you have the Community Applications Plugin installed on UnRAID before proceeding. To do this, navigate to the
Plugins tab in UnRAID, then click
Install Plugin and paste the following url in:
The plugin should then appear in the list:
Deluge is a popular open source BitTorrent client. It works very well with Sonarr and Radarr. I've been using Deluge on my main computer for a couple of years now and felt right to keep using it. We will be using Deluge to download all our media, feel free to use alternatives like qBittorrent or uTorrent.
First, let's create an UnRAID share that will act as the destination for all your downloads. I recommend calling it
Downloads. Make sure that this share is public and not private. This is because of permission requirements from Sonarr and Radarr.
Next, navigate to the
Community Applications plugin and search for Deluge by linuxserver and click install.
For the settings, the only field you need to change is the
Downloads volume mapping. Input the newly created
Downloads share you created.
Now go into the newly created Deluge container. You'll be prompted for a username and password. Username: admin Password deluge.
Connect to the default daemon and then click the
Preferences button at the top. We will tell Deluge to put all downloads in progress in the
Incomplete folder and all the finished downloads in the
That's it! Deluge should be correctly configured. To test it out, go to your favourite torrent indexer site and copy the magnet url into a new torrent by clicking the + button in the top left. It should add the torrent and start downloading.
Before we setup Sonarr and Radarr, we'll need to configure something that will allow Sonarr/Radarr to grab torrent files from indexers. Jackett makes it very easy to allow Sonarr/Radarr find quality torrents from a number of popular torrent indexer sites (259 available, most being private).
Jackett works as a proxy server: it translates queries from apps (Sonarr, Radarr, SickRage, CouchPotato, Mylar, DuckieTV, etc) into tracker-site-specific http queries, parses the html response, then sends results back to the requesting software. This allows for getting recent uploads (like RSS) and performing searches. Jackett is a single repository of maintained indexer scraping & translation logic - removing the burden from other apps.
Search for Jackett using the
Community Applications plugin. Again, we'll use
/downloads volume mapping to the
Downloads share we created. Once the image has been installed, open it up in your browser.
Add Indexer button at the top of the page. You'll be presented with a popup with a bunch of torrents.
Click the + button for each indexer you like. I went with 4 torrent indexers. These are ones I'm familiar with and comfortable using. Feel free to add your own. You'll need to add them one by one. Make sure they work by clicking the
That's all the configuration we'll need from Jackett for now. We won't set up a proxy, although I might cover that in another article.
Sonarr is very similar to Couch Potato, but for TV series. It automates downloading TV shows and organises these downloads by organising shows into folders and renaming episodes. It keeps track of everything it has and hasn't downloaded. You also get a calendar of when your favourite shows are airing.
Community Applications search for Sonarr and download the
You'll need to specify two volume mappings, one for downloads and one for the location of your media.
Once the Docker image has been installed, open up Sonarr in your browser. Navigate
Settings (the gear icon at the top of the screen) and then click the
Download Client tab.
Click the + button and fill the popup with the following:
- Host: The IP address of your server, for example (184.108.40.206)
- Port: 8112
- Password: deluge (unless you've change it on deluge)
- Category: tv-sonarr (or however you want to identify downloads triggered by sonarr)
Test button and you should get a message saying
Testing 'Deluge' Successful in the bottom right of your screen.
Now we need to setup indexers for Sonarr. We will be using the Jackett proxy server we just set up. Open up Jackett in another tab. In Sonarr, navigate to the
Indexers tab under
Settings. Click the + button and choose the
Torznab option (we'll need to repeat the following for each indexer we selected).
Fill out the popup with the following:
- URL: Go to Jackett and click the button for
Copy Torznab Feed. Paste the result in this field.
- API Key: Open up Jackett and look for the API Key which is located in the top right. Copy paste it in this field.
Test button and it should succeed.
Repeat for every indexer you added in Jackett and you should end up with something like this.
Other tutorials I have read skipped this part. I find this quite important to my setup as I wish to have ability to modify all the media downloaded by Sonarr. If we don't change the default settings, we won't be able to modify any of these media files (renaming, deleting moving).
Media Management under
Settings and then scroll to the bottom to the
Permissions section. Update this section to the following.
Read more about unix permissions here.
Of course, instead of
harvey you would use the user that you use to access your media. Now, we have all permissions to modify all the media downloaded by Sonarr.
Feel free to configure any other settings to personalise Sonarr. For example, you might want to change how your TV series are named (
Media Management) or the quality of your downloads (
To test everything in Sonarr works, navigate to the
Series section and click
Add Series. Search for any TV series and click the magnifying glass button labeled
Add and search for missing episodes. Sonarr should search the indexers for a torrent that matches your preferred quality and add it to Deluge.
Once the TV series has finished downloading, Sonarr should automatically detect this, move and rename the file to your Media share.
Sonarr will be able to detect which particular episodes you have and which you don't. It also makes it easy to download these missing episodes by only requiring you to click the aforementioned
Add and search for missing episode button.
Radarr is a fork of Sonarr that is for movies instead of TV series. It will automate the downloading and organisation of your movies. Much like Sonarr, it also allows for you to add movies which haven't yet been released on DVD/Bluray. Radarr will download these movies as soon as their available in your desired quality.
Setting up Radarr is identical to Sonarr. Use the
Community Applications, search for Radarr and download the
Setting up Deluge is identical to Radarr, so repeat everything we did in the Sonarr section (Adding download client, indexers and permissions).
Please note that Radarr saves movies in their own folder, ie:
Gone Girl (2014)/Gone Girl (2014).mp4. As of writing this article, you're not able to disable movie files being saved this way. This is only a problem if you've been saving your media files all in one folder. You will have to add each to their own folder for Radarr to recognise these files.
Using Radarr is very similar to Sonarr. You are able to search and choose movies for which you want Radarr to handle the downloading, moving and renaming for.
We've quickly and easily setup our media automation server on UnRAID! You should be able add your favourite movies/TV series to your wishlist and Radarr/Sonarr will automatically download them in your desired quality, move and rename them for you.