Ok, but doesn't XBMC like copy itself to memory or something?
I've been workin on a script to update it, but I haven't gotten to the extraction part.
If anyone is interested... Haven't tested on xbox
CODE
from ftplib import FTP
import UnRAR
import os
import sys
def progress(data): # Percent done and amount downloaded
f.write(data)
sofar = int(os.stat(list[7])[6])/1024
percentDone = (sofar/total)*100
print "\r%ikb of %ikb - %.2f%% done" % (sofar,total,percentDone)
#sys.stdout.write("\r%i of %i - %.2f%% done" % (sofar,total,percentDone))
sys.stdout.flush()
# Connect to ftp and download
ftp = FTP('xbmp.uk.xbins.org')
ftp.login(user='xbins', passwd='homebrew')
list = ftp.nlst()
total = ftp.size(list[7])/1024.0
f = file(list[7], "wb")
ftp.retrbinary('RETR '+list[7], progress)
f.close()
UnRAR.Archive(list[7]).extract()
First script with python
Also, can't you do like a "join" command?
This post has been edited by sevenlayercookie: Mar 8 2006, 12:27 AM