Page 1 of 1

Percentage calculations

Posted: Thu Jan 02, 2020 10:12 pm
by Garry
I see the percentage download on the qbittorrent screen. I would like to access the percentage data from another windows machine to monitor the progress. Where does qbittorrent keep the percentages or how are they calculated. I can see the partially downloaded files and I can get their sizes, but I cannot find where qbittorrent keeps the total size of the file(s) to be downloaded. Thanks.

Re: Percentage calculations

Posted: Fri Jan 03, 2020 8:49 am
by scragly
You can access the Web UI to be able to see all your torrents progress data and status'.

To enable the Web UI, go to Preferences > Web UI > Web User Interface (Remote control).

You'll be able to visit the Web UI in a browser by navigating to the local IP of the host machine while on your network and adding the port number afterwards, such as "192.168.1.125:8080".

Re: Percentage calculations

Posted: Fri Jan 03, 2020 4:36 pm
by Garry
Thanks, but I really want to see the data from my own program, not the UI. Is the size of each download and the amount of data downloaded so far stored anywhere or does the UI calculate it on the fly.

Re: Percentage calculations

Posted: Fri Jan 10, 2020 5:55 am
by scragly
Garry wrote: Fri Jan 03, 2020 4:36 pm Thanks, but I really want to see the data from my own program, not the UI.
Then you'll want to use the API. You can find the docs for it here.

You can get all the current torrent states through the /sync/maindata endpoint. The first request will provide a full set of data and any subsequent requests (so long as you make sure to pass the rid parameter) will provide only the data that has changed, avoiding the need to check for changes manually yourself.

Each torrent entry will have the progress information you need.