jerrymakesjelly / run-flexget

Determine whether to run FlexGet according to your maximum download limit.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Run Flexget

Size

FlexGet will always add torrents, but sometimes we don't want too many torrents in the downloading queue in order to prevent high I/O usage and guarantee UL/DL speed. This script will help you check whether the number of torrents being downloaded or the download speed is over the limit. If not, run flexget to continue adding torrents. Otherwise ignore them.

Note that this script only supports qBittorrent.

Requirements

Setup

cd run-flexget

Setting up the host

Open the file host.sh, and replace HOST into your WebUI address. For example:

host="http://127.0.0.1:8080"

Setting up the username and password

Open the file login.sh, and replace USERNAME and PASSWORD into your username and password of the WebUI. For example:

username="admin"
password="adminadmin"

Setting up the permission

chmod +x *.sh

Test your configuration

./login.sh && echo success || echo fail

If you can see success on your screen, it means that everything is ok. Otherwise, you should check your configuration.

Usage

./check_max_dl_limit.sh && ./check_max_dl_speed.sh && flexget execute || flexget execute --learn

You can add it to your crontab file, but don't forget to use absolute path.

You can simply add this script to the configuration file of crontab.

Additional Notes

The check_max_dl_limit.sh looks up the Maximum active downloads:

settings_screenshot

And check_max_dl_speed.sh looks up the Global Download Rate Limit:

screenshot2

About

Determine whether to run FlexGet according to your maximum download limit.


Languages

Language:Shell 100.0%