seshu0701 / transdroid

Automatically exported from code.google.com/p/transdroid
GNU General Public License v3.0
0 stars 0 forks source link

Torrentflux-b4rt torrent file list #177

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Whenever I move to the torrent details pane, I receive a message that states 
that :
'Listing files is not yet supported by your client or is not yet implemented'

If it is just that torrentflux is not putting up enough information, perhaps I 
can help two projects.

What kind of XML structure could I reproduce to create an accepted format for 
this file listing?

Original issue reported on code.google.com by Stephen....@gmail.com on 14 Jul 2010 at 12:14

GoogleCodeExporter commented 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

GoogleCodeExporter commented 8 years ago

Original comment by erickok@gmail.com on 19 Jan 2011 at 12:17