Open GoogleCodeExporter opened 8 years ago
Yes, it is indeed Torrentflux-b4rt that doesn't provide the necessary
information. What it supplies right now is a list of torrents (actually with
quite limited info as well) in a custom XML-compatible format. Here an
abbreviated example:
<tfbstats>
<server>
<serverStat name="speedDown">0.00</serverStat>
<serverStat name="freeSpace">8.24 GB</serverStat>
<serverStat name="driveSpacePercent">73</serverStat>
</server>
<users>
<user name="admin">
<userProp name="state">online</userProp>
</user>
</users>
<transfers>
<transfer name="3189986.torrent">
<transferStat name="Size">1.05 GB</transferStat>
<transferStat name="Status">Leeching</transferStat>
<transferStat name="Progress">0%</transferStat>
<transferStat name="Down">0.0 kB/s</transferStat>
<transferStat name="Up">0.0 kB/s</transferStat>
<transferStat name="Estimated Time">Starting...</transferStat>
</transfer>
</transfers>
</tfbstats>
So the file listing should be in similar format. Actually, the b4rt project
maintains the actual specification .xsds here:
http://svn.berlios.de/wsvn/tf-b4rt/trunk/html/xml/#_trunk_html_xml_
It would be nice to get the XML data on a per-torrent basis, with a request
looking someting like http://localhost/torrentflux/files.php?t=all Optionally
you could integrate it into the existing single-torrent request, such as
http://localhost/torrentflux/html/stats.php?t=transfer&i=3189986.torrent which
will currently return something like:
<transfer name="3189986.torrent">
<transferStat name="running">1</transferStat>
<transferStat name="speedDown">0.0 kB/s</transferStat>
<transferStat name="downCurrent">0.00 MB</transferStat>
<transferStat name="percentDone">0.0</transferStat>
<transferStat name="eta">Starting...</transferStat>
<transferStat name="seeds"></transferStat>
</transfer>
Maybe just add the files then to the <transfer> element here. It would be nice
if the actual content (numbers, strings) was structured a bit better than the
current data. The strings like 'Starting...' for example are a bit hard to
parse since they can be localized.
Finally, if you also want to be able to set transfer priorities to files (if
that is possible at all with Torrentflux-b4rt), this should be added to the
dispather.php, I guess. Hope this answers your questions.
Original comment by erickok@gmail.com
on 14 Jul 2010 at 8:20
Original comment by erickok@gmail.com
on 19 Jan 2011 at 12:17
Original issue reported on code.google.com by
Stephen....@gmail.com
on 14 Jul 2010 at 12:14