Addtorrent.php syntax?

dsouvik215

Member
May 25, 2018
896
0
16
Nice new forum, should make it easier to get little questions (like this one) answered without cluttering development.
Now, I'm trying to take the wonderful add to ruTorrent script, and allow it to specify a different download location, and possibly label. I see that there is the ability to pipe both "dir_edit" and "label" along with "url", but I cannot get them to work. Just for testing purposes, I've been trying
Code:
http://localhost/rt/rtorrent/addtorrent.php?url=http://releases.ubuntu.com/9.10/ubuntu-9.10-desktop-i386.iso.torrent&?dir_edit='/media/idioteq/'. This adds the torrent, but doesn't change the default directory :S
Is there some trick that needs to be done?
 

dsouvik215

Member
May 25, 2018
896
0
16
Oh okay, so
Code:
http://192.168.1.100/rt/rtorrent/addtorrent.php?url=http://releases.ubuntu.com/9.10/ubuntu-9.10-desktop-i386.iso.torrent?label=lawl?dir_edit=/media/idioteqshould add the torrent with a download directory of "/media/idioteq/" and a label of "lawl"? Cause when I try this, it seems like rutorrent takes everything after "url=" as the torrent URL, along with the label and dir_edit tags. undecided.gif

Is it possible to modify the label and directory when adding a torrent via addtorrent.php instead of through the dialog box?

Thanks.
 

jith45

Member
May 25, 2018
960
0
16
hy aqtrans...
i was reading this thread very interested... i'm looking for something equal...
what exactly are you doing with that, aren't you interested in doing a greasemonkey script with this?
 

dsouvik215

Member
May 25, 2018
896
0
16
Yeah, I'm actually trying to modify this awesome greasemonkey script to ask for the directory. I'm not at all a wiz at programming though, so I haven't figured out just how to do it.

The problem I seem to be running into is that I want to make the script ask for the directory AFTER you click the link, but the function to make that link has already been called to display the link (of course), so when you click it, it entirely ignores what directory you typed. There's probably some easy solution to this, but I can't seem to get past it.

If anyone wants I can upload what I've tried to do, but I warn it's probably very, very ugly tongue.gif
 

somus1735

Member
May 25, 2018
833
0
16
Hey aqtrans I'd love to see what you've done so far. Having a script to automatically send all torrents to ruTorrent would be awesome.
 

dsouvik215

Member
May 25, 2018
896
0
16
Hey aqtrans I'd love to see what you've done so far. Having a script to automatically send all torrents to ruTorrent would be awesome.
Here is the script that I tried modifying to fit my needs. The script unmodified works great with rutorrent, and I've successfully modified it to download torrents from specific sites to specific folders, but not to individually ask for a directory. If anyone has success with this, please share!