The total of my files' uploaded bits

Linux specific questions, problems.
raafat

The total of my files' uploaded bits

Post 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 ?
sledgehammer_999
Administrator
Administrator
Posts: 2443
Joined: Sun Jan 23, 2011 1:17 pm

Re: The total of my files' uploaded bits

Post by sledgehammer_999 »

How about this:

Image
raafat

Re: The total of my files' uploaded bits

Post by raafat »

That's for a single file not for all my files...

I'm looking for all my files
sledgehammer_999
Administrator
Administrator
Posts: 2443
Joined: Sun Jan 23, 2011 1:17 pm

Re: The total of my files' uploaded bits

Post by sledgehammer_999 »

Do you mean all torrents? If yes, qbittorrent doesn't have such a statistic.
raafat

Re: The total of my files' uploaded bits

Post by raafat »

Okay...Where does qbittorrent store those information file's path,how much have been uplaoded...etc?


Thank you
sledgehammer_999
Administrator
Administrator
Posts: 2443
Joined: Sun Jan 23, 2011 1:17 pm

Re: The total of my files' uploaded bits

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

Re: The total of my files' uploaded bits

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

Re: The total of my files' uploaded bits

Post 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.
sledgehammer_999
Administrator
Administrator
Posts: 2443
Joined: Sun Jan 23, 2011 1:17 pm

Re: The total of my files' uploaded bits

Post by sledgehammer_999 »

No he wants the sum of all torrents in the list. Not per torrent.
raafat

Re: The total of my files' uploaded bits

Post 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.
sledgehammer_999
Administrator
Administrator
Posts: 2443
Joined: Sun Jan 23, 2011 1:17 pm

Re: The total of my files' uploaded bits

Post 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.
Last edited by sledgehammer_999 on Thu Sep 12, 2013 2:27 pm, edited 1 time in total.
raafat

Re: The total of my files' uploaded bits

Post by raafat »

He talked about a variable called num_peers but there is no a variable called num_peers in *.fastresume

Is it outdated ?
raafat

Re: The total of my files' uploaded bits

Post by raafat »

Is not there way to got seeders and leechers ?

Where does qbittorrent store peers' data ?
raafat

Re: The total of my files' uploaded bits

Post 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 ?
sledgehammer_999
Administrator
Administrator
Posts: 2443
Joined: Sun Jan 23, 2011 1:17 pm

Re: The total of my files' uploaded bits

Post by sledgehammer_999 »

Libtorrent stores **some** peers. Usually you get peers from the tracker, other peers or dht.
Post Reply