Skip to content
PhysK edited this page Jan 22, 2020 · 2 revisions

Table of Contents

  1. Intro
  2. Access Information
  3. Library Location
  4. General Configuration
    1. Media Management
    2. Folder Management / Importing
    3. File Management
  5. Configuration /w NewsGroups
    1. General Information
    2. Adding Indexers - No NZBHydra
    3. Adding Indexers - /w NZBHydra
    4. Setting up the Downloader
    5. Downloader Settings
      1. Path Mappings
  6. Configuration /w Torrents
    1. Setting up Jackett | Indexers
    2. Setting Up a Downloader
  7. Plex/Emby/Jellyfin autoscan
  8. Summary

1. Intro

Sonarr is one of the most recognized programs utilized in order to obtain, maintain, and ugrade a user's TV show quality content. Sonarr operates in a hasty and efficient manner and provides a high degree of confidence in organizing and renaming files to be recongized both by Plex & Emby. For USENet, Sonarr works both with NZBGET & SABNZBD.

Sonarr is a PVR for USENet and BitTorrent users. It can monitor multiple RSS feeds for new episodes of your favorite shows and will grab, sort and rename them. It can also be configured to automatically uPTSrade the quality of files already downloaded when a better quality format becomes available.

2. Access Information

a. General Access

Protocol Address Notes
traefik** sonarr:8989 Only for Internal App-to-App Communication
https sonarr.domain.com Traefik must be Deployed; Remote Servers
http domain.com:8984 Poor Security Practice - Stop with PTS Port Guard
http ipv4:8984 Ideal Only for Local Servers

b. 3rd Party Connection Tips

  • Sonarr to NZBGET, type nzbget in the address (not 127.0.0.1 or the IP)
  • Sonarr to SABNZBD, type sabnzbd in the address (not 127.0.0.1 or the IP)

3. Library Location

This is where the renamed/organized files are for playing on plex and where sonarr will look for your library. /mnt/unionfs/4ktv

4. General Configuration

Important! Ensure you setup the required Downloader Path mappings for hardlinking, super fast importing to work! See here

Start off by ensuring that the advanced view is turned on and is on when making any changes! Certain things will be hidden if you fail to do so!

Next, select media management. From here, scroll down until you see Episode Naming. Make sure to turn that on. If not, file names will be stored as-is and may complicate the setup with Plex and/or Emby

i. Media Management

Naming Scheme

{Series Title} - S{season:00}E{episode:00} - {Episode Title} [{MediaInfo VideoCodec}-{Quality Full} {MediaInfo Audio-}{MediaInfo AudioChannels}]

ii. Folder Management / Importing

Disable: Create Empty Folders Enable: Skip Free Space Check Enable: Use hardlinks instead of Copy

iii. File Management

Turn on advanced settings @ placement #1. Next, scroll down to file management and [TURN OFF] analyse video files. If left on, it will ring up your API usage for G-Suite and result in slower scans being conducted by Sonarr.

5. Configuration - NewsGroups

NOTE: Ensure that you followed the steps in Step 4 - General Configuration First

i. General Information

Note that you setup your indexers in two ways. A user can post their indexers here directly, or setup NZBHydra which will sort and attempt to utilize the best nzb to download user connect. NZBHydra is completely optional.

News Group indexer information is generally easy to setup. The great thing about Sonarr is that there is a prebuilt list of indexers to select from (meaning you do not have to discover them on your own). Select the [+] symbol in order to add an indexer.

ii. Adding Indexers - No NZBHydra Usage

Next, you will see custom and presets. Custom should only be selected if the indexer that's being utilized is not on the preset list. If on the preset list, select it.

After selecting the indexer, the only thing that has to be done is to add the API Key. Indexers provide API keys outright or buried within the settings of their website. Ensure that the key is not known or shared with others. Some indexers may ban the use of your key if excessive IP address are detected.

Warning: NZBGeek even though advertising unlimited usage; they truly are not. If utilizing PlexGuide to search 100's of items daily, NZBGeek will accuse you of scrapping their website. You have been warned!

Once done, conduct a test to ensure that the Indexer is working. Click save and repeat again if required.

iii. Adding Indexers - /w NZBHydra

Before proceeding onward, you must have NZBHydra deployed with at least one working indexer configured. Failing to had have an indexer setup will result in being unable to connect to NZBHydra.

To Setup, go to the Indexers Tab and click the [Custom] button!

Next, setup the following:

  1. Name: Anything You Want (NZBHydra Recommended)
  2. URL: http://nzbhydra:5076
  3. API: Obtained from NZBHydra

When Finished, select [Save] in the upper right corner.

iv. Setting Up a Downloader

a. General Information

It is recommended to have NZBGET or SABNZBD deployed before moving on to ensure that connection is working when testing. First, start by selecting download clients and then selecting the [+] symbol. For Google GCE, it is recommended to use NZBGET due to its ability to keep up with mass downloads!

You only have two choices primarily to choose from. Select either NZBGET or SABNZBD and then follow the instructions below based on your choice.

b. Setting up NZBGET

Prior to setting up, ensure to have NZBGET deployed first!

  1. Type in the Name nzbget
  2. For the host, type in nzbget (not localhost or the IP address)
  3. Ensure that port is 6789
  4. Put the username and password of NZBGET (if one was set)
  5. Must be tv (all lowercase)
  6. Test the connection
  7. Select [Save]

Once complete, exit!

c. Setting up SABNZBD

Prior to setting up, ensure you have SABNZBD deployed first!

  1. Type in the Name sabnzbd
  2. For the host, type in sabnzbd (not localhost or the ip address)
  3. Ensure that port is 8080
  4. Paste your API key from SABNZBD
  5. Put the username and password of NZBGET (if one was set)
  6. Must be tv (all lowercase)
  7. Test the connection
  8. Select [Save]

Once complete, exit!

v. Downloader settings

a. Advanced Settings

Ensure that advanced settings are turned on. You will fail to see the remote mappings if you fail to do so!

b. Completed & Failed Download Handling

By default, nothing has to change as shown in the picture below. The remove options are optional; if you wish to change them.

c. Remote Path Mappings

For each downloader you use, you need to setup a "mapping" per downloader. A mapping is required per downloader for hardlinking to work. This is required for the best performance. For more information, read Sonarr, Radarr, Lidarr Remote Path Mappings

Host Remote Path Local Path
sabnzbd /mnt/downloads/nzb/ /mnt/unionfs/nzb/
nzbget /mnt/downloads/nzb/ /mnt/unionfs/nzb/
qbittorrent /mnt/downloads/qbittorrent/ /mnt/unionfs/qbittorrent/
rutorrent /mnt/downloads/torrent/ /mnt/unionfs/torrent/
deluge /mnt/downloads/deluge/ /mnt/unionfs/deluge/

6. Configuration - Torrents

NOTE: Ensure that you followed the steps in Step 4 - General Configuration First

You can set up Sonarr to use all of the indexers set up in Jackett or just a specific one

i. Setting up Jackett (using all indexers)

  • Paste in the following URL: http://jackett:9117/torznab/all/api
  • Paste in your Jackett API key
  • Select Save

ii. Setting up Jackett (for specific indexer)

  • Visit the Jackett Wiki to obtain the URL & API for the indexer you wish to use within Jackett.
  • Paste in the URL, but once you're done; change the address to match http://jackett:9117 as shown below.
  • Paste in your API key
  • Select Save

iii. Setting Up a Downloader

a. General Information

It is recommended to have your torrent client deployed prior to configuration!

Now select a torrent program as shown below.

(1). Setting up RuTorrent

Next, enter the following information!

  1. Name: rutorrent
  2. Enable: Yes
  3. Host: rutorrent
  4. Port: 80
  5. Url Path: RPC2
  6. Username & Password: Add if one applies
  7. Category: tv
  8. Recent Priority: High | Older Priority: Normal

(2). Setting up qbittorrent

Next, enter the following information!

  1. Name: qbittorrent
  2. Enable: Yes
  3. Host: qbittorrent
  4. Port: 8080
  5. Username & Password: Add if one applies
  6. Category: tv
  7. Recent Priority: High | Older Priority: Normal

(3). Setting up deluge

Next, enter the following information!

  1. Name: deluge
  2. Enable: Yes
  3. Host: deluge
  4. Port: 8112
  5. Username & Password: Add if one applies
  6. Category: tv
  7. Recent Priority: High | Older Priority: Normal

Once complete, exit!

b. Downloader Settings

(1). Advanced Settings

Ensure that advanced settings are turned on. You will fail to see the remote mappings if you fail to do so!

(2). Completed & Failed Download Handling

By default, nothing has to change as shown in the picture below. The remove options are optional; if you wish to change them.

(3). Remote Path Mappings

This step is required. Click Here for instructions! Failing to do so will result in things not uploading.

7. media autoscan

we prefer PlexAutoScan, this part, unfortunately, uses too many API requests, and is no longer needed after the implementation of Plex_autoscan.

Plex Auto Scan

Sonarr V3 (preview) has improved its plex autoscan capabilities. It no longer scans the entire tv directory. This has eliminated the need for third-party scripts. For this functionality to work, you need to connect sonarr to plex/emby/jellyfin. You also need to disable library autoscanning inside plex/emby/jellyfin server settings. For plex, you want to keep partial scans enabled. See their wikis for more info. Note: If you are using the legacy path /unionfs instead of /mnt/unionfs for your media, you will have scanning issues until you update your library paths to /mnt/unionfs

Settings page: Sonarr >> Settings >> Connect >> +

Plex

On Import: Checked
On UPTSrade: Checked
On Rename: Checked
Host: `plex`
Port: `32400`
Use SSL: Unchecked
Update Library: Checked

Emby/Jellyfin

On Import: Checked
On UPTSrade: Checked
On Rename: Checked
Host: `emby` or `jellyfin`
Port: `8096`
Use SSL: Unchecked
Send Notifications: Optional
Update Library: Checked

8. Summary

Sonarr is a very easy program to utilize. As long as you follow the basic information, any user should be good to go.

Useful Starter Links

  1. Introduction
  2. G-Suite Signup
  3. Recommended NewsHosts
  4. Change Log

Prior Planning 101

  1. Recommended Pre-Reading
  2. Server - Storage Planning
  3. Usenet or BitTorrent
  4. PTS Editions
  5. PTS Folder Structure
  6. PTS-Repos
  7. Common Issues

Deploy & Config

PTS-Team
  1. SSH Server Access
  2. Install PTS
  3. WatchTower
  4. Remote Path Mappings

Data Transport
  1. PTS Clone
    1. Google OAuth Keys
    2. PTS Move
    3. PTS Blitz
    4. 2nd HD Option

Key Components

  1. Traefik
  2. Port Guard
  3. PTS Shield
  4. PTS Press
  5. Google Cloud - GCE
    1. Automated setup
  6. Hetzner Cloud
  7. PTS Fork
  8. Extra PTS Commands

Blitz App Info

  1. Accessing PTS Apps
  2. App Port Scheme

Tools & Services

Core Apps [Expand]
  1. Emby
  2. Jackett
  3. Jellyfin
  4. LazyLibrarian
  5. Lidarr
  6. Netdata
  7. NZBGet
  8. Ombi
  9. Plex
  10. Portainer
  11. qBittorrent
  12. Radarr
  13. Radarr4k
  14. RadarrHDR
  15. RuTorrent
  16. SABnzbd
  17. Sonarr
  18. Sonarr4k
  19. SonarrHDR
  20. Tautulli
  21. JDownloader2
Community Apps [Expand]
  1. AirSonic
  2. Bazarr
  3. Bitwarden
  4. BookSonic
  5. cAdvisor
  6. Cloud Commander
  7. Deluge
  8. DelugeVPN
  9. Dozzle
  10. Duplicati
  11. Filebrowser
  12. FlexGet
  13. Gazee
  14. Headphones
  15. Heimdall
  16. HomeAssistant
  17. jd2-openvpn
  18. Kitana
  19. Logarr
  20. MakeMKV
  21. MariaDB
  22. McMyadmin
  23. MEDUSA
  24. Mellow
  25. Miniflux
  26. Monitorr
  27. Muximux
  28. Mylar
  29. NextCloud
  30. NowShowing
  31. NZBHydra2
  32. Organizr
  33. plpp
  34. pyLoad
  35. qBittorrent
  36. QBittorrent VPN
  37. radarrsyncarr
  38. Resilio
  39. rflood-openvpn
  40. rutorrent-openvpn
  41. Shoko Anime Server
  42. SpeedTest
  43. SyncLounge
  44. Teamspeak3
  45. The Lounge
  46. Transmission
  47. Trakt.or
  48. Ubooquity
  49. Varken
  50. vnc-xfce
  51. vnstat
  52. ZeroTier

Misc Info & Articles

  1. Change Server Time
  2. Fail2Ban
  3. Custom Containers
  4. Deploying Varken, Influx, Telegraf, Grafana
  5. cloneclean commands
  6. Understanding htop
Scripts
  1. Scripting Area
    1. Auto Upload for Sonarr and Lidarr
    2. Auto Delete Log
    3. Plex Plugin DB Backup
    4. Plex fast BACKUP
    5. Delete All Unmonitored from Radarr
Clone this wiki locally