项目作者: JDRIVO

项目描述 :
rTorrent Crash Prevention
高级语言: Python
项目地址: git://github.com/JDRIVO/rTorrent-Disk-Checker.git
创建时间: 2018-07-21T10:31:06Z
项目社区:https://github.com/JDRIVO/rTorrent-Disk-Checker

开源协议:

下载


rTorrent Disk Checker

This program is capable of the following when:

  1. - a torrent is added by any program (autodl-irssi, RSS Downloader etc)
  2. - a torrent is added remotely or locally

This program checks available disk space and deletes torrents based on criteria defined in config.py when there’s insufficient space to accommodate a new torrent. If space is still inadequate, the torrent is sent to rTorrent in a stopped state, and a notification can be sent to you from numerous messaging services.

Requirements

  • rTorrent 0.9.7+

  • Python 3+

Setup

Run the setup script by entering the following command in your terminal (Refer to this script for manual setup instructions):

bash setup.sh

Test Script

This script displays the torrents that will be deleted without actually deleting them.

Results will output to your terminal and a text file named testresult.txt

This script accepts two arguments: 1. Torrent Size ( GB ) 2. Mount Point [Optional] Default mount point is “/“

python test.py 69

To send a test message:

python messenger.py email pushbullet

Accepted arguments: email, pushbullet, pushover, telegram, discord, slack