Code Monkey home page Code Monkey logo

Comments (2)

bakerboy448 avatar bakerboy448 commented on June 20, 2024
  • QBm only operates on completed torrents so this is moot
  • Share limits only apply to completed torrents

from qbit_manage.

Antorell avatar Antorell commented on June 20, 2024

I'm still using Qbittorrent 4.3.9 and I didn't realize qbit_manage had a lock to only work with "completed" torrent. I was thinking to try Qbittorrent 4.5.x as it has an option to run an external program when a torrent is added to limit public torrents. Is there any chance the share_limts behavior will ever be changed to works when a torrent is added?

It's all down to this line from what I could see:

torrent_list = self.qbt.get_torrents({"status_filter": "completed"})

changing it to
torrent_list = self.qbt.get_torrents({"status_filter": "completed"} and {"status_filter": "downloading"})
or
torrent_list = self.qbt.get_torrents({"status_filter": "completed"} and {"status_filter": "paused"} and {"status_filter": "downloading"})
or
torrent_list = self.qbt.get_torrents({"status_filter": "all"})
With the changes, Share_limits get set when a torrent is added (at least --run from bash command line, I don't have qbittorrent 4.5.x installed yet)

|============================= Updating Share Limits based on priority ==============================|
| Assigning torrents to share limit groups... |
|===================== Updating Share Limits for [Group default] [Priority 999] =====================|
| Torrent Name: Linux-Image-nogroup |
| Tracker: |
| Added Tag: ~share_limit_999.default |
| Share Limit: Max Ratio = 1.0, Max Seed Time = 60 min |
| Webhook attribute set to notifiarr but notifiarr attribute is not configured. |
|====================================================================================================|
| Finished Run |
| Total Torrents Tagged: 1 |
| Total Share Limits Updated: 1 |
| Run Time: 0:00:00

from qbit_manage.

Related Issues (20)

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.