xboxscene.org forums

Author Topic: Xbmc Updater?  (Read 49 times)

sevenlayercookie

  • Archived User
  • Newbie
  • *
  • Posts: 14
Xbmc Updater?
« on: February 27, 2006, 02:50:00 PM »

Hey, I'm new to the XBMC scripts scene, and I was wondering if it was possible to create an auto-updating script for XBMC.
       Also, how do you make scripts? What programming language or program etc.


                  Thanks

*EDIT*  Sorry about the language, etc. Didn't notice "Python"... But still wondering about the updater.

This post has been edited by sevenlayercookie: Feb 27 2006, 10:54 PM
Logged

imamafackinhokie

  • Archived User
  • Sr. Member
  • *
  • Posts: 327
Xbmc Updater?
« Reply #1 on: March 07, 2006, 07:54:00 AM »

I doubt this will be possible.  Many files and xml's are chanigng whenever a new cvs release comes out, and since many of the xml's are in use when running scripts and xbmc, there wouldnt be a way to install the new files without corruption or error because of being in use.

Logged

sevenlayercookie

  • Archived User
  • Newbie
  • *
  • Posts: 14
Xbmc Updater?
« Reply #2 on: March 07, 2006, 04:21:00 PM »

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
Logged

JustinT9669

  • Archived User
  • Full Member
  • *
  • Posts: 227
Xbmc Updater?
« Reply #3 on: March 07, 2006, 05:12:00 PM »

It would be easier just to make a script on ur pc and update xbmc via xbdm or ftp.
Logged

JayDee

  • Archived User
  • Hero Member
  • *
  • Posts: 2311
Xbmc Updater?
« Reply #4 on: March 08, 2006, 12:15:00 AM »

I´de rather not see a script like this for many reasons. First and formost becouse the update will screw over many peoples xml´s and then bitch here about it.

But thats imo
Logged

Yuyu

  • Archived User
  • Hero Member
  • *
  • Posts: 908
Xbmc Updater?
« Reply #5 on: March 08, 2006, 08:27:00 PM »

Yea, I'd have to say a script like this would be not that good for the end user.
It's best if the people who know how to, stick to compiling their own or the people who like it easier stick to getting their releases from Xbins. Makes it easier on everyone one if people know end-users are using quality builds or not.
Logged

sevenlayercookie

  • Archived User
  • Newbie
  • *
  • Posts: 14
Xbmc Updater?
« Reply #6 on: March 09, 2006, 10:13:00 AM »

KK, well maybe Ill just use it for me  (IMG:style_emoticons/default/biggrin.gif) . Thanks for the response anyways
Logged

JayDee

  • Archived User
  • Hero Member
  • *
  • Posts: 2311
Xbmc Updater?
« Reply #7 on: March 09, 2006, 09:40:00 AM »

On another note:

If someone could update the filezillaserver used in XBMC (it is oooolllldddd) to it´s current state it would be very possible to add a ftp bookmark in the My Files section and download via ftp.....
Logged

sevenlayercookie

  • Archived User
  • Newbie
  • *
  • Posts: 14
Xbmc Updater?
« Reply #8 on: March 10, 2006, 10:19:00 AM »

I dunno, I'm not to good at porting... Would the old version work??
Logged