Xbmcscripts.com needs and wants your help!
#1
hi,

most of you probably know that i will be going away next saturday and won't work on xbox related stuff for almost a year at least. thus i have a wish that people carry on working on the site and the scripts belonging to the site, as i do feel it has come a long way and is useful to people (at least one may hope so).

so, if you have looked at the code for the installer, you might notice that there are a lot of code for a local browser in there. in fact, the backbone of the code is almost complete. i will now try to explain a bit how it works (if i can remember...coded this part in june). it first gets the directory list in q:\\scripts\\ . then it visits every directory looking for a .py file. if that is found, we know that we're dealing with a script. then we introduce the scripts specs (which are still floating in the air...but let's leave that for later). we want to know if the script is specs-compliant, so it checks for a script.xml in that dir. if that is found, it parses that xml and returns data from it. however, if no xml is found, the data is still created, but it uses directory name as script name and rest of info in the object is set to "unknown".

all code to do this is in there already, only thing needs tweaking is the xml parsing part to match whatever script spec chosen. all this returns one object in the end - a list. this list contains multiple dictionaries, one for each script. out of this dictionary you can read e.g locallist[0]['name'] to get name of first script. as you can see there isn't much work left to do, since most already is done (i believe...my memory could fool me though).

the way i had planned on doing this was making it one big script containing both a browser and an installer, which you could switch inbetween them. an notifier to notify for new versions of scripts would of course be nice, and is possible and not too hard either, but it complicates things a bit. the easiest way of handling this would be only allow updating on scripts that use the scripts specs, since then you can read date out of xml. to allow non-specs scripts to get updated this way you could save an xml with scriptd id (all scripts on site has an id number) along with the date fetched from site. then you would know what date the local copy was of.

this should provide some background to the script, as i really wish that it could develop into a full-fledged browser, with auto-updating scripts, thumbnails viewing and whatnot. please ask question and show your interest in this thread if there's any Smile

i will release all graphics files i have lying on my disk related to this project shortly..(on the scriptservice site). thanks for taking your time reading all this.
xbmcscripts.com administrator
Reply
#2
wow a whole year. must be some big trip. have you considered making xbmcscripts.com a wiki style sight or are you going to hand over admin to someone else?
Reply
#3
(asteron @ aug. 10 2005,01:04 Wrote:wow a whole year.  must be some big trip.  have you considered making xbmcscripts.com a wiki style sight or are you going to hand over admin to someone else?
not trip, school. will be taking a break from computers (on a daily basis) for a while and i won't have my xbox with me so...

the site will continue as it is now, but someone else will run the site. you'll know more about it soon Smile

now, on-topic please...
xbmcscripts.com administrator
Reply
#4
hope someone takes up the cause, i was looking forward to this script downloader and i'm glad to see you at least managed to get a good start. if i was more experienced i'd volunteer, but as it is i don't know anything about the scripts, so it'll take me a while to even figure out what's going on in here.
Reply
#5
enderw,

could you publish the finalised 'script.xml' format, along with an example, on your site somewhere ? (or even post it here?)

top effort btw.
much appreciated.
Reply
#6
(bigbellybilly @ aug. 10 2005,10:19 Wrote:could you publish the finalised 'script.xml' format, along with an example, on your site somewhere ? (or even post it here?)
it's not finalized yet, he left the script.xml spec up in the air deliberately so the people working on it afterward can decide how to arrange it. at least that's how i read it, i guess rather than just hand down a spec he wanted to leave it open in case someone had some good ideas on what needs to go in there.
Reply
#7
ok, is there an unfinished spec somewhere i can try and work too ? or is it a bit premature to do so ?
i've tried reading some of the threads on this subject but got completly confused as to the current format.
Reply
#8
this is the one the scripts is coded for (and should be parsed):

Quote:<info>
<name>xbmclyrics</name>
<author>enderw</author>
<version>1.0</version>
<updated>20-04-05</updated>
<description>fetches lyrics from the song you are currently listening to</description>
<changelog>none at the moment</changelog>
<firstrun>this will be displayed on first run</firstrun>
</info>

not totally legal xml...
it will need some additions, but as long as it's an own element things are very easy and almost no extra code is needed. it reads the name out of the elements and creates an dictionary out of it. so if you add <runfile> it should be parsed automatically. you just need to set it to "unknown" before the parsing takes place...

a whole new parser might be needed though if the specs start using attributes and child elements.

please ask if there's anything you don't understand...
xbmcscripts.com administrator
Reply
#9
i'm currently writing the info file for flexibrowser and have just one question:

the date element seems to be expressed in "dd-mm-yy".
should't it be better "yyyy-mm-dd"?

bernd
Reply
#10
darn americans Wink (i take it that's the american way of typing dates)

seriously though, i dunno...i don't really care as it's not important, i'll leave it up to the people continuing it to make that decision (i leave very soon...friday that is).
xbmcscripts.com administrator
Reply
#11
(enderw @ aug. 14 2005,18:49 Wrote:darn americans Wink (i take it that's the american way of typing dates)
we damn americans usually use mm/dd/yy (-:
yyyy-mm-dd is the iso standard. the string representation also sorts correctly chronolgically.
Reply
#12
yyyy-mm-dd is the dateformat.
and as asteron correctly stated its the iso format.
and yyyy in the beginning makes it clearly distinguishable from other formats.

bernd
Reply
#13
sure, it's now you guys' decision, not mine Smile

what format it is in doesn't really matter since the script can read and write in any format...so why not use the iso-standard...
xbmcscripts.com administrator
Reply
#14
time to say good bye...thanks a lot to all of you scripters, it's been great discussing and getting help from you. thanks a lot for all your support to my site, i really appreciate it.

please read xbmcscripts.com's frontpage for my newspost.

i will drop by now and then, but not very often i think...

see you again later,
enderw
xbmcscripts.com administrator
Reply
#15
(enderw @ aug. 18 2005,00:54 Wrote:time to say good bye...thanks a lot to all of you scripters, it's been great discussing and getting help from you. thanks a lot for all your support to my site, i really appreciate it.

please read xbmcscripts.com's frontpage for my newspost.

i will drop by now and then, but not very often i think...

see you again later,
enderw
thanks for all your effort
and best wishes.

bernd
Reply

Logout Mark Read Team Forum Stats Members Help
Xbmcscripts.com needs and wants your help!0