Automate TV shows downloads with Sonarr

10th Dec 2015 Karibu

Sonarr logo I want to introduce a great app called Sonarr that can automatically download TV shows and organize it into folders. If you are tired to manually seek every week each episode on torrent or usenet networks, this app is for you !

It can be completed with a Plex or Emby server to stream shows and access them from any device.

I will cover how to install Sonarr and do a basic configuration:

**1) Install Sonarr


(Tested on Debian 8)

Add Sonarr repository:

sudo apt-key adv --keyserver --recv-keys FDA5DFFC
echo "deb master main" | sudo tee /etc/apt/sources.list.d/sonarr.list

Install Sonarr:

aptitude update
aptitude install nzbdrone

Create a user for Sonarr and set it as the owner of the files and folders:

adduser sonarr
chown -R sonarr:sonarr /opt/NzbDrone/

To launch Sonarr on startup, login as the user “sonarr” and edit cronjob:

su - sonarr
crontab -e

to add the following line

@reboot mono /opt/NzbDrone/NzbDrone.exe

Finally, reboot the server or launch Sonarr manually:

mono --debug /opt/NzbDrone/NzbDrone.exe

and you should be able to access the web interface on http://server-ip:8989


**2) Basic Sonarr configuration


You may get the following error messages in the system tab:

Sonarr errors

First go to Settings / Indexers and add an indexer (you can test with Kickass torrent). If you don’t find a provider in the default ones, have a look at Jackett (and contribute to it if you can, they need help !) to add more torrent / usenet providers.

Then, go to Settings / Download client and configure your favourite download software. You will need to install one manually which I don’t cover in the article. Have a look here for advice on Torrents clients, for Usenet I like NZBGet .

Finally, go to Series and start adding your shows ! The first time Sonarr will need you to set a path to store Shows. It will use it to copy completed files from the Usenet / Torrent client download folder to the one you set in the path.

If Sonarr and the download client are not on the same machine, you can use a NFS mount but make sure Sonarr user has read & write permissions on the shared folders 😉

You can then point your media center solution to the Sonarr folder and use it to stream videos or automate subtitles download. Emby is great for that. One tip is make sure the files are not renamed by Sonarr when moved from the download folder so Emby picks the subtitle version that matches your video release.

That’s pretty much it so good luck and enjoy !


Add a comment