Downloading completed files through the web interface?

4 views
Skip to first unread message

Andreas Fuchs

unread,
Mar 21, 2009, 11:04:57 AM3/21/09
to rtGui
Hi there,

I just installed rtgui, and so far it looks like it's a very nice and
capable web interface to rtorrent. Good job!

The only thing I'm missing so far is the ability to download files
from the web UI to my local hard drive (rtorrent and rtgui are running
on a remote machine, while I'm using rtgui from my laptop's web
browser). Is this feature just not implemented yet, or do I need to
change any configuration settings to do that?

Thanks,
Andreas.

Elisamuel Resto

unread,
Mar 21, 2009, 1:23:39 PM3/21/09
to rt...@googlegroups.com
From what I can tell, the feature is not implemented and I think it also hasn't been requested... check the bugtracker for that, and request it if desired.

-E

lemon...@gmail.com

unread,
Mar 21, 2009, 2:16:30 PM3/21/09
to rtGui
The feature is not implemented as I don't understand why you might
want to do this? What's wrong with FTP/NFS/SCP/Samba/etc?

If you want to download via HTTP, better configure your webserver to
point to your completed torrents directory, and use the Apache listing
feature to show you the list of files/subdirs/size etc

incidently, the 'issue' list is for bugs -
http://code.google.com/p/rtgui/issues/list - not requests. Requests
are only valid if code is suplied ;)

Cheers
Simon

llamaX

unread,
Mar 21, 2009, 4:24:27 PM3/21/09
to rtGui
As lemonberry stated, the easiest way is to use your web server's
directory listing feature (make sure your web server has read
permission for the data directory). The easy method is to use a
symlink: ln -s /path/to/files /path/to/rtgui/my-public-data

And then accessing the files via http://your.rtgui.address/my-public-data

Personally, I'd just use rsync... but no one asked me. ;)

llamaX

unread,
Mar 21, 2009, 7:17:11 PM3/21/09
to rtGui
Here's a slightly more convenient method (combined the the symlink
mentioned before). In index.php, find the line (~243) that displays
the reads "// Torrent name". Insert something like ...

if ($item['complete']==1) echo "(<a href='my-public-
data/".htmlspecialchars($item['name'], ENT_QUOTES)."'>DL</a>)";

... as the third line below that, just before the div closes. To be
really productive, you could likely have rTorrent delete associated
data files upon removal of torrents. But that's a topic for another
mailing list, and likely outside of the scope of what you want.

llamaX

unread,
Mar 21, 2009, 7:27:49 PM3/21/09
to rtGui
Sorry to flood the list with replies to myself, but I missed the
associated line in json.php. :p

Find the line that starts with...
$subdata[$totcount]['name']=
...and add this as the following line:
if ($item['subcomplete']==1) $subdata[$totcount]
['name'].=" (<a href='my-public-data/".htmlspecialchars($item['name'],
ENT_QUOTES)."'>DL</a>)";

Or else it may not appear to update with the download link properly in
certain cases.
Reply all
Reply to author
Forward
0 new messages