[REQUEST] Full BitTorrent client as a python script for XBMC?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Spc4 Offline
Junior Member
Posts: 45
Joined: May 2008
Reputation: 0
Post: #31
Install XDSL as an app. I have Skype running on my Xbox using linux.
find quote
queeup Offline
Fan
Posts: 734
Joined: Feb 2009
Reputation: 15
Post: #32
I think we can use some boxee files for downloading torrents from xbmc gui.

What we need:
boxee-rtorrent (binary file from boxee source, in bin-linux folder)
rtorrent.rc.linux (settings file from boxee source, in system folder)
RTorrent script(for controling rtorrent program)
Torrent plugin (for searching and downloading torrent files from internet)

Concept:
We must start boxee-rtorrent with xbmc. I'm not sure how we can do that. Maybe with autoexec.py or inside Torrent plugin (or with this init file). After that searching and downloading torrents from Torrent plugin. In rtorrent rc file we have "Watch a directory for new torrents" setting parameter. rtorrent watch ~/.xbmc/torrent directory and start download automatically. When it finishes files moved on ~/.xbmc/downloads/.


I made Video plugin for downloading torrent files from eztv.it & thepiratebay.Its very dirty plugin. I cant figure it out how can i download torrent files to ~/.xbmc/torrent folder. (look at "def addLink" param.)

Second problem RTorrent skin not compatible with PM3.HD skin. Need some modification.

Files:
http://ankara.baskent.edu.tr/~obaskin/XB...e-rtorrent
http://ankara.baskent.edu.tr/~obaskin/XB...torrent.rc
(rtorrent looking to home folder for settings file. it must be place to "~/" i'm not sure if there is an option for settings file directory)
http://ankara.baskent.edu.tr/~obaskin/XB...orrent.zip
http://ankara.baskent.edu.tr/~obaskin/XB...default.py

This is very handy feature. Is it worth to try? or just waiting devs to porting boxee torrent capability.

I'm not a coder, i cant do that with my own. Smile
find quote
Voinage Offline
Banned
Posts: 853
Joined: Mar 2008
Location: England
Post: #33
It was an option when xbmc was xbox only, never really caught on.

Try Googling Pytorrent, it`s another option rather than waiting for Boxee porting.
find quote
althekiller Offline
Team-XBMC Developer
Posts: 4,710
Joined: May 2004
Reputation: 12
Post: #34
AFAIK, there's nothing special about their rtorrent install. You'd just need to rip out all the custom skin stuff, the xmlrpc bits should work fine with out messing. rTorrent is *nix only though so be ready to add support for some popular win32 client when the whining starts Tongue
find quote
queeup Offline
Fan
Posts: 734
Joined: Feb 2009
Reputation: 15
Post: #35
I found this python package for transmission.
http://pypi.python.org/pypi/transmissionrpc/0.3
http://bitbucket.org/blueluna/transmissionrpc/wiki/Home

http://coldstar.net/transmission/doc/0.3/
http://coldstar.net/transmission/doc/0.3...onrpc.html

Maybe someone want to look at it.
find quote
queeup Offline
Fan
Posts: 734
Joined: Feb 2009
Reputation: 15
Post: #36
hmmm nice, its working good.

example code:
Code:
def addToTransmission(url):
        xbmcgui.Dialog().ok("Transmission", "Torrent Added to Transmission", url)
        tc = transmissionrpc.Client('localhost', port=9091, user=None, password=None)
        tc.add_url(url)
find quote
w3__ Offline
Senior Member
Posts: 146
Joined: Jul 2008
Reputation: 0
Post: #37
Just so I can understand this completely:

BitTorrent was originally written 100% in Python, yes? But there are no "XBMC-native" BitTorrent (protocol) + control clients?

What are the primary obstacles here? Combining this with, say, a Torrent search engine, would be massively awesome.
find quote
Post Reply