Page 1 of 1

Is there to limit the time a particular torrent can download?

Posted: Fri Oct 15, 2021 6:46 pm
by RedScourge17
I have a particular torrent that's 160GB to download. I am no longer limited by bandwidth, but I am finally able to share more than I download. This 160GB will put all that out of whack (limitations of my proxies, I guess -- VPN, etc.).

So, is there a way to limit WHEN this torrent can download?
As in, you can only download between 1am and 2am. Otherwise, remain stalled OR upload only?
I know this will take me longer to finish it, but right now there are plenty of seeds. And eventually I will seed the hell out of it also.

Re: Is there to limit the time a particular torrent can download?

Posted: Fri Oct 15, 2021 10:12 pm
by Peter
Well you could toggle the alternate speeds where you would limit upload and only enable download or whatever.
But how to toggle that?
Well, qbittorrent has an API. With Python, and the library, you could literally do this in a one-liner.

See: https://qbittorrent-api.readthedocs.io/ ... r.Transfer

Code: Select all

>>> from qbittorrentapi import Client
>>> client = Client(host='localhost:8080', username='admin', password='adminadmin')
>>> # update speed limits mode to alternate or not
>>> client.transfer.speedLimitsMode = True
It uses the WebUI to do the API calls.

Re: Is there to limit the time a particular torrent can download?

Posted: Thu Oct 21, 2021 2:21 am
by RedScourge17
Thank you!

That helped.