Coder Social home page Coder Social logo

qbtmanager's Introduction

QbtManager

QBitTorrent Manager for clearing up jobs and processing RSS. It has several aims:

  • Pause any completed torrents unless their tracker is listed in the settings, and the tracker is listed in the settings. This allows you to stop torrents on most trackers when they complete, but keep torrents seeding on private trackers with certain ratios etc.
  • Adjust other torrent properties on a per-tracker basis, including upload limit and other parameters.
  • Do RSS for server-based (linux) QBitTorrent. QBT handles RSS on Windows, but not on Linux. So this will take a list of RSS URLs, and download all new torrents that are listed in them. Note that it will create a downloadhistory.json file to track snatched torrents so they're not repeatedly downloaded and added to QBT.

To use:

  1. Copy the binaries from the latest [release] (https://github.com/Webreaper/QbtManager/releases) to your linux NAS. There's Linux and Windows binaries each in a zip file.
  2. Create 'Settings.json' file in the same folder
  3. Run, in a script or cron job.

Settings.json format/sample:

This example uses a wildcard to stop all torrents once they complete, and set their upload limite to 30KB/s, except for those from APrivateTracker, which will be kept for 1 year and seeded with an unlimied upload speed. Trackers are processed in-order, so for global settings, specify the wildcard tracker last.

Note that if deleteTasks=true then torrents will be deleted from QBT when they expire. If deleteTasks=false, torrents will be paused, but not deleted.

If deleteFiles=true then torrent content/files will be deleted when torrents are deleted. This has no effect if deleteTasks=false.

The deleteMessages setting is a special filter for particular messages on a tracker. Any strings listed here will result in the torrent being deleted if the tracker message in QBT matches them. This can be particularly useful when a tracker drops a torrent - e.g., if it's been repacked, and the individual torrent is no longer valid. The delete_task_not_file_if_other_tasks will prevent a delete from removing the files if another torrent has the same files and sizes The delete_task_not_file_tags will prevent torrents with the given tags from having their files deleted. The delete_task_not_file_categories will prevent torrents with the given categories from having their files deleted.

The QBT password field is optional. If you leave it out, you will need to change the settings in QBT to include the subnet where this tool is running to be excluded from authentication.

  {
    "logLocation": "./dscleanup.log",
    "deleteTasks": true,
    "deleteFiles": false,
    "delete_task_not_file_if_other_tasks":  true,
    "delete_task_not_file_tags": [ "cross-seed" ],
    "delete_task_not_file_categories": [ "cross-seed" ],
    "qbt": {
      "username": "admin",
      "password": "sekritpasswd",
      "url": "http://192.168.1.30:8090/api/v2"
    },
    "trackers": [
      {
        "tracker":"APrivateTracker",
        "maxDaysToKeep" : 365,
        "up_limit" : -1,
        "deleteMessages" : [
          "unregistered torrent"
        ] 
      },   
      {
        "tracker":"*",
        "maxDaysToKeep" : 0,
        "up_limit" : 30
      }      
    ],
    "rssfeeds": [
      {
        "url" : "https://mytracker.com/rssfeed"
      }
    ],  "email": {
      "smtpserver": "mail.somehost.co.uk",
      "smtpport": 25,
      "username": "[email protected]",
      "password": "sekritpassword",
      "toaddress": "[email protected]",
      "fromaddress": "[email protected]",
      "toname": "Joe Smith"
    }
  }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.