I love Flexget, it’s so easy and it can do everything that I want it to do – and it makes my life easier. So in this post I’ll guide you to how you can setup Flexget with Deluge in a easy way on Windows and as a extra bonus I’ll also show you how you can make it to unrar everything after Deluge have downloaded it.
So after this guide you will have Flexget that will auto download Torrents trough RSS and with some filters and also after the download are completed Flexget will unrar the files if needed.
The settings should also work on any Linux installation, it’s just the installation of Python, WinRAR and Deluge that are different.
First we need to install the following applications, click on the name in the list to download them.
And after you have installed this applications is important that you reboots your computer.
Now it’s time to install Flexget on your system and we are going to do that trough the CMD prompt. To open the CMD prompt press the following key combo when you have your desktop up.
Or just search after “run” and then press enter.
Then write the following in the window that did open.
Now your in the CMD prompt, now we need to write some commands.
python -m pip install -U pip setuptools
pip install flexget
pip install rarfile
Flexget and everything we need are now installed, what we need to do now is to make sure that we configure Flexget and Deluge in the right way.
What we need to make sure of is that you have open the port that Deluge uses in your firewall but also that you have made a port forward for that port in your gateway/router.
As it’s some settings that you need to change in Deluge I have made screenshots in to a slideshow of them, just change your settings so they match the pictures and everything should work.
This slideshow requires JavaScript.
We also need to install and setup SeedTime in Deluge, it’s a great plugin. What it does is that when a torrent have been seeding for xx amount of time it deletes the torrent from Deluge. SeedTime will not delete the data from the torrent it will just delete it in Deluge.
We need to install the SeedTime plugin so download SeedTime from the following this link https://github.com/gazpachoking/deluge-seedtime/releases/tag/v0.5
Now we need to install it, it’s simple just do the following in Deluge
Click on the “Install Plugin” button
Navigate to the place where you did download the plugin (.egg file) and choose it.
Here is a example of my SeedTime settings, it’s set that after 3 days SeedTime will delete the torrent from Deluge.
This is a little tricky as Deluge don’t have any auto start option we need to create it by our self – it it’s a fast thing to fix.
And it’s nice to have it auto starting when you reboot your computer.
First we need to create a file that will make Deluge auto run, so open Notepad and write the following.
set lang=en
start deluged.exe
start deluge.exe
Then save it as "start.cmd" in the following folder
C:\Program Files (x86)\Deluge\
Now right click on the "start.cmd" file and click on "Create shortcut" in the drop down menu.
Now you can first move this shortcut to the desktop, then we also need to copy the shortcut to the startup folder, to navigate to the startup folder we first need to open "Run" to do that press the following keys
or open the "Search" and write run and then press enter.
Then in the "Run" box write the following and then press enter
Now you should have a window open with the startup folder so just copy the start.cmd shortcut from the desktop to that folder and after that Deluge will auto start when you reboot your computer.
The configuration of Flexget is wide and you can almost do whatever you want with it, in this guide I’ll show you how to use some of this plugins but far from all of the plugins that are available, you can just copy paste this config in to your Flexget configuration file. But make sure that you have changed what I’m writing that you should change below.
Make sure that you have a folder named "flexget" in the following location "C:\Users\YOURUSERNAME\" if you don’t have it, it’s nothing strange just great a folder with the name "flexget".
Now you also need to make sure that inside the folder "flexget" you should have a file named "config.yml" if you don’t have it you need to create that file, you can do it with Notepad if you want to use that but I recommend you to use Sublime Text it’s free and you can download it here https://www.sublimetext.com/ it’s inside the "config.yml" file we will write our configuration of Flexget.
So here is my example configuration file for Flexget, you can download the file if you want directly but make sure that you change the things that you need to change before you use it.
Please note that I have not repeated my self inside the file when I’m explaining things even if the setting are showing multiple times I’ll just explained it the first time in the file.
https://cloud.nohatech.se/f/cda74900d90041478218/?dl=1
(I’ll as soon as I have time write the code in plain text at this site, but the code was pasted in a strange way and it should have taken a seriuse amount of time to fix it, so until I have time to write it in plain text you can just download the "config.yml" file from the link above.)
Schedule Flexget to auto run
What we want is that we want Flexget to run by it self and do what we have configure it to do, as most torrent sites will ban you if you spam the RSS on the site they have a limit for 5min so what we gonna do now is to schedule Flexget to run every 5min.
First we need to open the "Task Scheduler" to do that just open "Search" and search for "Task Scheduler" and then click on it.
Now in the "Task Scheduler" you need to right click on "Task Scheduler Library" and then in the menu you should click on "Create Task..."
I have been taking screenshots of my settings to publish here, it’s easier for you to see how it should look like, so make sure that your settings are exactly like my settings. You can change the name of it if you want.
Then you need to click to the "Triggers" tab and then click on "New" then make it look like this:
Now click on the "Actions" tab and then click on "New" then make it look like this:
And for the tabs "Conditions" and "Settings" make them look like this pictures in the slideshow below.
This slideshow requires JavaScript.
Now when we are finished with all of this just click on the "OK" button and create the Task, now you need to reboot your computer to activate this Task and after that we are all done!
As with everything you need to maintain it, in this case you can run the following commands once a month, and your going to run them in the CMD prompt.
This commands updates PIP, Setuptools, Flexget and rarfile.
pip install --upgrade pip
pip install --upgrade setuptools
pip install --upgrade flexget
pip install --upgrade rarfile
This was easy right? I did google and as far as I can tell it’s no guide out there for this purpose and many people are asking after auto download for torrent but also auto unrar for torrents I hope you did enjoy the guide and that it did help you.
Install Flexget with Deluge on Windows I love Flexget, it's so easy and it can do everything that I want it to do - and it makes my life easier.