[Libtorrent-devel] Number of leechers and seeds
Josef Drexler
josef at ttdpatch.net
Mon Aug 11 12:19:00 UTC 2008
On Aug 10, 2008, at 9:33 PM, Wei-Hao Cheng wrote:
> If I want to control rTorrent by XMLRPC, how can I get the
> number of seeds and
> leeachers of each torrent?
IF the tracker provides this information, t.get_scrape_* (complete/
incomplete/downloaded).
If the tracker doesn't provide it, you cannot get it from rtorrent.
> And, is there any good strategy to estimate the availability
> of a torrent?
Not particularly. The number of seeds can be very misleading (if
there are many seeds but they're all unconnectable or throttled by
their ISP or just generally slow). The number of leechers is an
indication of popularity, but not really health. You could check the
chunk statistics (esp. number of distributed copies), but I don't
think that's available via xmlrpc.
The only decent indicator I can think of is the average download
speed of the other non-seeders, which you get from p.get_peer_rate.
--
Josef Drexler
josef at ttdpatch.net
More information about the Libtorrent-devel
mailing list