Percentage calculations

Windows specific questions, problems.
Post Reply
Garry
Newbie
Newbie
Posts: 2
Joined: Thu Jan 02, 2020 10:07 pm

Percentage calculations

Post by Garry » Thu Jan 02, 2020 10:12 pm

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.

User avatar
scragly
Global Moderator
Global Moderator
Posts: 20
Joined: Sat Dec 21, 2019 2:18 pm

Re: Percentage calculations

Post by scragly » Fri Jan 03, 2020 8:49 am

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".
Image | Image

Garry
Newbie
Newbie
Posts: 2
Joined: Thu Jan 02, 2020 10:07 pm

Re: Percentage calculations

Post by Garry » Fri Jan 03, 2020 4:36 pm

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.

User avatar
scragly
Global Moderator
Global Moderator
Posts: 20
Joined: Sat Dec 21, 2019 2:18 pm

Re: Percentage calculations

Post by scragly » Fri Jan 10, 2020 5:55 am

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.
Image | Image

Post Reply