a weblog about programming, hacking, linux, and other randomness

My Photo
I'm a Programmer, Hobby Hacker, and Linux Freak.

Tuesday, June 2, 2009

uTorrent to TorrentFlux Bridge

uTorrent is to Windows users as TorrentFlux is to Linux users. They both have a convenient web interface equipped with transfer controls. TorrentFlux is a bit more extensive, but uTorrent has always had a big advantage in my opinion: Remotes. There's a huge list of community projects built from the collective WebUI API.

Every time I'd see a fancy remote application for my phone like Torrent FU or for my work computer like uRemote I'd spend hours thinking of ways to copy them for TorrentFlux. Finally I realized a more effecient solution: A bridge to translate uTorrent request URIs into TorrentFlux URIs and vice-versa.


UPDATE!
This project has been merged into a new project!
Read the announcement of the new project.

UPDATE!


ut-tf-bridge receives commands from the uTorrent remote, performs the requested actions on a TorrentFlux server, and returns the transfer data to the uTorrent remote. A more detailed breakdown of the process follows:
  1. uTorrent Remote → http://torrentflux-server/gui/?list=1 → ut-tf-bridge
  2. ut-tf-bridge → http://torrentflux-server/stats.php?f=xml&t=transfers → TorrentFlux Server
  3. TorrentFlux ServerXMLut-tf-bridge
  4. ut-tf-bridgeJSONuTorrent Remote
In order to perform actions such as Start Transfer or Stop Transfer authentication is required. Username and Password values may are passed as a basic HTTP authentication header. Currently the bridge can perform these actions:
  • Start
  • Stop
  • Pause
  • Unpause
  • Force Start
  • Recheck
  • Remove
  • Remove With Data
  • Set Priority (untested)
  • Add File by URL
Maybe, with some help, a universal bridge library could come from this?

0 comments:

Post a Comment