rTorrent Crash Prevention

Overview

rTorrent Disk Checker

This program is capable of the following when:

             - a torrent is added by any program (autodl-irssi, RSS Downloader etc)
             - a torrent is added remotely or directly 

This program checks your available disk space. If your free disk space is not large enough to accommodate a pending torrent, the program will delete torrents based on criteria defined in config.py. If your disk space is still too low, the torrent will be sent to rTorrent in a stopped state. You can choose to receive an email, Pushbullet, Telegram or Slack notification if this occurs.

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 will show you what torrents this program will delete without actually deleting torrents.

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 ( 0 will default to mount '/' )

python test.py 69 0

To send a test message:

python messenger.py email pushbullet

Accepted arguments: email, pushbullet, telegram, slack

Comments
  • Calculate left_bytes

    Calculate left_bytes

    Hi,

    I don't understand why in test.py you don't use the d.left_bytes of leeching torrents, there is a call but then it's not used. And I don't understand why in checker.py you use the left_bytes only from the last torrent of the last 3 minutes ? Could you explain please. I try to improve it and wanted to know the purpose. Thank you. 😃

    opened by twolaw 32
  • Stopped torrents

    Stopped torrents

    Hi. Im having a issue with the script. After installing it, all torrents added (autodl-irssi) are stopped and never starts. This happens even if the disk has free space.

    opened by masterprogrammer999 19
  • Test to trigger torrent start

    Test to trigger torrent start

    Hi, sorry to bother you again but I may have found another bug.

    In checker.py why do you compare available_space and required_space to decide if torrent should be started or not ? here and here Those 2 variables do not change during the while loop, only freed_space change. Comparing them is not logic, look : torrent_available_space

    opened by twolaw 18
  • minimum_seeders in delete general rules

    minimum_seeders in delete general rules

    Hi, Could you add another minimum requirement in delete rules : I would like to have minimum_seeders = 2 checked before i delete a torrent in some tracker.

    Thank you

    opened by twolaw 14
  • Issue with python3

    Issue with python3

    Having this problem sometimes in one of my dedicated (Fresh install Debian 9 and swizzin script) Any advice? Thanks

    http://images2.imagebam.com/7f/4f/0a/00971a1239661684.jpg

    opened by amlopin 11
  • Adding Pushover notification service

    Adding Pushover notification service

    Hi @JDRIVO,

    I tried to add another popular notification service, Pushover. I've used them for years and it never disappointed me. Hopefully it can be included into this awesome script.

    opened by BHWarrior 1
  • scgi variable errors when its a socket

    scgi variable errors when its a socket

    When running setup.sh I get a sed error and the config.py file isnt updated correctly. This is related to the value of the $scgi variable. In my case the value of $scgi returns as /home/peterzal/rtorrent/.socket. The following sed command errors.

    sed -i "s/.*scgi.*=.*/scgi = '$scgi'/" config.py 
    

    I was able to replace it with the below to fix the issue

    sed -i "s|scgi.*=.*|scgi = "\'${scgi}\'"|" config.py
    
    opened by peterzal 1
Owner
null
JimShapedCoding Python Crash Course 2021

Python CRASH Course by JimShapedCoding - Click Here to Start! This Repository includes the code and MORE exercises on each section of the entire cours

Jim Erg 64 Dec 23, 2022
Socorro is the Mozilla crash ingestion pipeline. It accepts and processes Breakpad-style crash reports. It provides analysis tools.

Socorro Socorro is a Mozilla-centric ingestion pipeline and analysis tools for crash reports using the Breakpad libraries. Support This is a Mozilla-s

Mozilla Services 552 Dec 19, 2022
ped-crash-techvol: Texas Ped Crash Tech Volume Pack

ped-crash-techvol: Texas Ped Crash Tech Volume Pack In conjunction with the Final Report "Identifying Risk Factors that Lead to Increase in Fatal Pede

Network Modeling Center; Center for Transportation Research; The University of Texas at Austin 2 Sep 28, 2022
customer churn prediction prevention in telecom industry using machine learning and survival analysis

Telco Customer Churn Prediction - Plotly Dash Application Description This dash application allows you to predict telco customer churn using machine l

Benaissa Mohamed Fayçal 3 Nov 20, 2021
Throttle rTorrent on Plex stream Start/Stop

Dependencies Python 3.6+ Tautulli Script Setup Edit rtorrent_throttle.py and set rTorrent username, password and RPC2 url. Tautulli Setup Commum Scrip

null 4 Apr 25, 2022
JimShapedCoding Python Crash Course 2021

Python CRASH Course by JimShapedCoding - Click Here to Start! This Repository includes the code and MORE exercises on each section of the entire cours

Jim Erg 64 Dec 23, 2022
Translating symbolicated Apple JSON format crash log into our old friends :)

CrashTranslation Translating symbolicated Apple JSON format crash log into our old friends :) Usage python3 translation.py -i {input_sybolicated_json_

Kam-To 11 May 16, 2022
Material for the ros2 crash course

Material for the ros2 crash course

Emmanuel Dean 1 Jan 22, 2022
Python3 parser for Apple's crash reports

pyCrashReport in intended for analyzing crash reports from Apple devices into a clearer view, without all the thread listing and loaded images, just the actual data you really need to debug the problem ?? .

null 7 Aug 19, 2022
Proof of concept of CVE-2022-21907 Double Free in http.sys driver, triggering a kernel crash on IIS servers

CVE-2022-21907 - Double Free in http.sys driver Summary An unauthenticated attacker can send an HTTP request with an "Accept-Encoding" HTTP request he

Podalirius 71 Dec 22, 2022
A program that uses real statistics to choose the best times to bet on BloxFlip's crash gamemode

Bloxflip Smart Bet A program that uses real statistics to choose the best times to bet on BloxFlip's crash gamemode. https://bloxflip.com/crash. THIS

null 43 Jan 5, 2023