Git Product home page Git Product logo

flexget-limiter's Introduction

flexget-limiter

A flexget plugin for stop task when high I/O or network usage

English | δΈ­ζ–‡

Requirement

Install

  1. Install psutil
pip install psutil
  1. Download plugin limiter.py
  2. Create a new plugins folder under the Flexget configuration folder, for example:
~/.flexget/plugins/                   # Linux
C:\Users\<YOURUSER>\flexget\plugins\  # Windows
  1. Copy the limiter.py to the plugins folder
  2. If Web-UI or daemon is enabled, please restart Flexget to reload the configuration

Usage

  1. Editing the Flexget configuration. Add limiter option and configure as needed
limiter:
  down: 1000       # download speed KB/s
  up: 100          # upload speed KB/s
  disk:
    read: 10000    # disk read speed KB/s
    write: 10000   # disk write speed KB/s

advanced

limiter:
  wait: 1          # detection time, second, default: 1s
  reject: no       # reject all items, yes or no, default: no

When the system parameter exceeds the configured value, the current Flexget task will stop
Note: The configuration can be incomplete, just set the parameters you want to limit

  1. Start Flexget
flexget execute

Configuration example

Stop task when upload speed exceeds 10MB/s

tasks:
  my-limit-upload-task:
    rss: https://www.example.com/rss
    limiter:
      down: 10240  # 10 x 1024 = 10240
    download: ~/flexget/torrents/

Stop task when disk write speed exceeds 80MB/s

tasks:
  my-limit-write-task:
    rss: https://www.example.com/rss
    limiter:
      disk:
        write: 81920  # 80 x 1024 = 81920
    download: ~/flexget/torrents/

Q&A

How can I use because my python version is 2.X ?

This plugin only supports Python 3.X or Python 2.7. Other versions are not available. Please uninstall Flexget and install with Python3.

pip uninstall flexget  # uninstall
pip3 install flexget   # install with pip3

flexget-limiter's People

Contributors

juszoe avatar

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.