Percentage calculations

Windows specific questions, problems.
Post Reply
Garry

Percentage calculations

Post 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.
scragly

Re: Percentage calculations

Post 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".
Garry

Re: Percentage calculations

Post 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.
scragly

Re: Percentage calculations

Post 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.
Post Reply