
- #Deluge torrent strip folders install
- #Deluge torrent strip folders zip
- #Deluge torrent strip folders tv
- #Deluge torrent strip folders download
#Deluge torrent strip folders zip
So this will extract the zip contents in the same directory.

Since I’m using Sonarr everything that comes from the Sonarr application gets a “label” or a category assigned to it such as “ tv-sonarr“. Simple Extractor is pretty straight forward where do you want to extract the files.
#Deluge torrent strip folders install
There are two plugins you need to install inside of Deluge first.
#Deluge torrent strip folders tv
Also before I forget let me say I was a huge qBittorrent user before this so switching over to Deluge was a little bit of a learning curve.Īnyways here’s what I did to accomplish Sonarr and Deluge extracting the files then moving the episode to its TV hard-drive location and finally deleting the packed files/torrent. The hardest thing was getting Sonarr / Deluge to extract packed rar/zipped TV shows and then later remove the files. However it did take a few days getting everything to work properly. The interface is nice and straight forward and there is absolutely no lag. I honestly don’t know why I didn’t make the change sooner. So before I mark this thread as solved, I'll close by saying if you're in the same boat as me and you want to extract strings from both a filename and it's folder path, research sed, awk, regex, and pipes.So I recently made the change from using Sickrage & Medusa to switching over to Sonarr. In order to get to the point of having a working script, I need find answers to questions that are far beyond the scope of my original question. I've got the commands working so that they work with the different naming schemes used by both the uploaders I use, and so that I can get most of the information I need to create a name that conforms to Plex's naming schemes (the rest of the name is standard text which I can simply insert). In order to set the variables I want, I'm using (or should that be "playing around with"?) ls and various sed and/or awk regex commands and pipes. I've answered my own question for the most part but I won't post the exact solution I came up with (and it's regex's) as it all depends on my specific scenario (folder structure and the names of the torrents I download). #the follwing gives just the YYYY from a the uploader's filename.Įyear=$"ls 01* | sed -r 's/.).*/\1/'" If anyone can point me in the right direction in regards to the next step I need to take or what shell tools I should be using, then I'm happy to do as much of the leg work as I need to. I can get the deluge-console to output $torrentpath/$torrentname to a file but I don't now where to go from there.

This is complicated by the fact that the torrent(s) in question have multiple version released through the course of a week, with each version adding additional files to the folder. The one other essential thing that the script must account for is that it should only create the hardlink if it does not already exist in the destination folder. The various bits of info that can be derived from the folder path and filename would need to be rearranged in order for the new hardlink's name to match Plex's naming conventions. replacing "One" with "1", or "Foos.Bar" with "Foos' Bar"). I'll also need to replace certain bits of the file name with snippets of text that I can define within the script (i.e.

each hardlink name would have "The" added to the beginning).
#Deluge torrent strip folders download
The existing download paths and file names contain everything I need except a few words that will be the same for every hardlink's name (i.e. so I'm going to try and keep it short.īasically what I want to do is push my noobie skills to the limit by writing a script that take the output from the Deluge torrent client's console, namely the path and name of a folder when a torrent is added or completes, and then creates hardlinks for all the files within the torrent, naming them based on the various parts of the existing file's name(s) and path. This is about the twentieth time I've tried to write this post but it always becomes a behemoth.
