Deluge & Sonarr - No Copies

Why use this setup?

If your TV Shows are located on other then the same location you are downloading too. Sonarr cannot create a hardlink for you. That means Sonarr will have to copy the file instead and you’ll end up having to put up twice the storage space for your downloaded shows.

This guide will help you setup Deluge in order to eliminated the need for copies. I would call it somewhat advanced and time consuming. However worth it if you want/need to save storage space.

– Before I decided to dedicated two raid drives only for torrents (got tired of adding/removing new/old shows) this is how I did it.

The Setup - The positive and the negative. . .

positive - You won’t need double the space to host your TV Series.
negative - Renaming files will obviously not work until seeding is done and torrent removed from the client.

For this guide you’ll need five things and a lot of time!

  1. Windows
  2. Link Shell Extension, “LSE” http://schinagl.priv.at/nt/hardlinkshellext/linkshellextension.html
  3. Deluge with “LabelPlus” plugin https://github.com/ratanakvlun/deluge-labelplus
  4. And every TV Show needs its own folder.
  5. Finally, junctions…

Folder structure: Base

  • Select a location you want as a “base of operations” it can be on any hard drive. Then create a folder structure, something like “D:\DL\Deluge\CDF\TV”

Folder structure: Source

  • After you’ve installed “LSE” goto the folder containing your TV Shows, for example “E:\TV Shows”
  • Select all folders, right click and select “Pick Link Source”
  • Goto “your base of operations” folder “D:\DL\Deluge\CDF\TV” right click and select Drop As…Junctions
  • Repeat these steps if you have more TV Shows on other drives.

Deluge: Labels / Locations / Matchmaking

When Sonarr sends a torrent to Deluge, labelplus will be used to match that torrent and send it to the corresponding download location. Namely the source folder we made a junction for, there-go, leaving us with only one copy of the file.

LabelPlus: Label

  1. Select the LabelPlus tab on the left sidebar.
  2. Right Click the left sidebar, Add Label, name it ‘TV’
  3. Check ‘Enable download settings’
  4. Check ‘Folder’ make sure the path is that of your ‘base of operations’ “D:\DL\Deluge\CDF\TV”
  5. Apply and Close

LabelPlus: SubLabel

  1. Right Click the ‘TV label’ just created, then Add SubLabel, name of the show. . .
  2. Check ‘Enable download settings’
  3. Check ‘Label based Subfolder’
  4. Create an ‘autolabel’ for the show.
  5. Repeat until you are done with all shows…

Todo the matching I recommend using regex. Found under “autolabel” Here is an example that’s simple and works for normal filenames. The.?Vampire.?Diaries.?(\d{4})?.?S{1}\d{1,2}(E{1}\d{1,3})?

What do you mean with two copies?

Guide updated with explanation =)