This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Bookmarklet for KTorrent WebUI?

Tags: None
(comma "," separated)
smpn
Registered Member
Posts
3
Karma
0

Bookmarklet for KTorrent WebUI?

Mon Apr 12, 2010 6:56 am
Hello, after trying rtorrent, rtpg-www and Azureus/Vuze I finally found a torrent client for Ubuntu that I really like, and it's KTorrent. So thanks for that!!

Now what I really need is to be able to load torrents into KTorrent from any machine on my home network.
My plan is to have KTorrent running on my HTPC and it's going to be the always-on server with big storage attached.

Has anyone created a bookmarklet that will look for .torrent links on a page, and send them to the KTorrent WebUI?
Or something similar? Copy & pasting links will be kind of tedious.

Thanks,
Skye
smpn
Registered Member
Posts
3
Karma
0

Re: Bookmarklet for KTorrent WebUI?

Tue Apr 13, 2010 6:49 am
OK, doesn't look like anyone has make a bookmarlet for this yet, so I'll dive in and write it.

Is it possible to post a torrent URL to the web UI using GET variable?
Looking at "View Source" the form submission action for "Load a torrent" is:

Code: Select all
      
<form action="javascript:load_url(); update_torrents(); show_div('content');" method="get">
         <div class="item">
            URL:
            <div class="option">
               <input id="torrent_url" type="text" name="load_torrent" style="width : 240px;" />
               <br /><span>Example: http://ktorrent.org/down/latest.torrent</span>
         
               <div style="margin-top : 1em;">
                  <input type="submit" value="Load Torrent" />
               </div>
            </div>
         </div>
      </form>


Hmm, how can I construct a URL to invoke that?

Thanks
Skye
George
Moderator
Posts
5421
Karma
1
George
Moderator
Posts
5421
Karma
1

Re: Bookmarklet for KTorrent WebUI?

Tue Apr 13, 2010 3:58 pm
You get back some XML though no direct error indication, because the URL is downloaded in the background and the webserver doesn't wait for it to succeed or fail.


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]