Page 1 of 2

The total of my files' uploaded bits

Posted: Sun Sep 08, 2013 2:14 pm
by raafat
Qbittorrent display how much have been downloaded of a file that's fine

But i'm also looking for the total of my files,How can i do that ?

Re: The total of my files' uploaded bits

Posted: Mon Sep 09, 2013 11:38 am
by sledgehammer_999
How about this:

Image

Re: The total of my files' uploaded bits

Posted: Mon Sep 09, 2013 1:51 pm
by raafat
That's for a single file not for all my files...

I'm looking for all my files

Re: The total of my files' uploaded bits

Posted: Mon Sep 09, 2013 3:46 pm
by sledgehammer_999
Do you mean all torrents? If yes, qbittorrent doesn't have such a statistic.

Re: The total of my files' uploaded bits

Posted: Mon Sep 09, 2013 5:38 pm
by raafat
Okay...Where does qbittorrent store those information file's path,how much have been uplaoded...etc?


Thank you

Re: The total of my files' uploaded bits

Posted: Mon Sep 09, 2013 7:56 pm
by sledgehammer_999
This info is saved into *.fastresume files per torrent. The naming scheme is <torrent-info-hash>.fastresume. IIRC, on linux, these are saved in /home/<username>/.local/qbittorrent/

These files are bencoded. Unfortunately libtorrent.org is down so I cannot point to the correct docs describing the fastresume structure. However you can download the source and take a look at the manual.html in the "docs" folder. Look for the "fast resume" headline. (although the description isn't up to date with the actual source code).

EDIT: and of course if you remove a torrent you lose its stats forever.

Re: The total of my files' uploaded bits

Posted: Wed Sep 11, 2013 6:34 pm
by raafat
HI i have got total uploaded,file size,name...but i also want peers and seeders and any other useful data


thank you .

Re: The total of my files' uploaded bits

Posted: Wed Sep 11, 2013 11:32 pm
by loki
[quote="raafat"]
HI i have got total uploaded,file size,name...but i also want peers and seeders and any other useful data


thank you .
[/quote]

Adding more columns? Just right-click the column area of the main window and select the ones you want, alternatively unselect the ones you don't want.

Re: The total of my files' uploaded bits

Posted: Thu Sep 12, 2013 5:41 am
by sledgehammer_999
No he wants the sum of all torrents in the list. Not per torrent.

Re: The total of my files' uploaded bits

Posted: Thu Sep 12, 2013 1:44 pm
by raafat
As i have mentioned before i got total_uploaded and fiel size and file name from *.fastresume files and i'm looking for peers and seeders and any other useful data


Any an idea ?


thank you guys.

Re: The total of my files' uploaded bits

Posted: Thu Sep 12, 2013 2:25 pm
by sledgehammer_999
Whatever you see in .fastresume files. libtorrent parses it and makes the relevant info available through it's API. It isn't very well documented.
It is somewhat described in the "fast resume" header of this page of the manual->http://sourceforge.net/p/libtorrent/cod ... html#l8297
(download the html and open in your browser it should render correctly, or open from a source release under the "docs" subfolder.)

Alternatively, you could read the raw code/comments of torrent::write_resume_data() or torrent::read_resume_date()

EDIT: eg from the manual page:
peers: list of dictionaries. Each dictionary has the following layout:
ip string, the ip address of the peer. This is not a binary representation of the ip address, but the string representation. It may be an IPv6 string or an IPv4 string.
port integer, the listen port of the peer

These are the local peers we were connected to when this fast-resume data was saved.

Re: The total of my files' uploaded bits

Posted: Thu Sep 12, 2013 4:10 pm
by raafat
He talked about a variable called num_peers but there is no a variable called num_peers in *.fastresume

Is it outdated ?

Re: The total of my files' uploaded bits

Posted: Sat Sep 14, 2013 2:02 pm
by raafat
Is not there way to got seeders and leechers ?

Where does qbittorrent store peers' data ?

Re: The total of my files' uploaded bits

Posted: Sat Sep 14, 2013 2:07 pm
by raafat
Who does store torrent files's data ? how much uploaded how much downloaded the number of seeders and leechers and total traffic...etc

Is it torrent server or torrent tracker ?

Re: The total of my files' uploaded bits

Posted: Sat Sep 14, 2013 3:24 pm
by sledgehammer_999
Libtorrent stores **some** peers. Usually you get peers from the tracker, other peers or dht.