Auto Remove Torrents

This unofficial app installation script is provided for your convenience. The script is provided as-is and may not be updated or maintained by Ultra.cc. Customers are welcome to use and customize unofficial app installers for their unique needs and requirements. Unofficial support may be offered via Discord only and at the sole discretion of Ultra.cc staff. Use at your own risk and only proceed if you are comfortable managing the application on your own.

Autoremove Torrents is an open-source Python project that allows the automatic removal of torrents from various torrent clients based on configurable criteria. It can help manage disk space by deleting torrents when they are finished seeding. Here's the GitHub page of the project.

Features

Supported Clients

Autoremove Torrents works with the following torrent clients:

Installation

From PyPI

This will install the latest stable release:

pip install autoremove-torrents

From Source

This allows installing the development version:

git clone https://github.com/jerrymakesjelly/autoremove-torrents.git
cd autoremove-torrents
python setup.py install --user

Configuration

Autoremove Torrents uses a YAML configuration file to define the torrent clients and removal rules.

Client Configuration

First, you need to specify connection details for each torrent client:

qbittorrent:
  client: qbittorrent
  host: https://username.hostname.usbx.me/qbittorrent
  username: <your-username>
  password: <your-password>

deluge:
  client: deluge
  host: IP:Daemon port
  username: <your-username>
  password: <your-password>

Removal Strategies

Next, define removal strategies under each client. For example:

strategies:

  delete_seeds:
    remove: ratio > 2

  clear_space:
    free_space:  
      min: 10
      path: /downloads
      action: remove-big-seeds

Usage

autoremove-torrents --conf=/path/to/config.yml
autoremove-torrents --conf=/path/to/config.yml --task transmission
autoremove-torrents --view --conf=/path/to/config.yml --task transmission

Dry run allows you to see what would be deleted without actually removing anything.

Automation

# Run at 2AM every day
0 2 * * * /path/to/autoremove-torrents --conf=/path/to/config.yml

Uninstallation

pip uninstall autoremove-torrents
rm -rf ~/.config/autoremove-torrents && rm -rf ~/.apps/autoremove-torrents

Revision #8
Created 14 October 2023 12:59:41 by Excel_USB
Updated 19 November 2023 21:59:03 by Varg