View Full Version : KML2 Browser
zilvershadow
2004-05-22, 01:22
hello,
i'm proud to present to you my kml browser.
browse all shoutcast streams online. very fast!
with an up to date shoutcast database.
download here:
webradio 2 / kml browser (http://home.quicknet.nl/qn/prive/sg.homs/kmlbrowser.rar)
<span style='color:red'>updated v0.11:</span>
fixed/added:
6/6
* better fonts copied from blueblack
31/5
* status dialogs (for playlists, downloads, error reporting)
* fixed most lockups
* cache dir moved to q:\scripts\simplekml\ (where also transparent gifs are stored)
* added mp3 description fadelabel
* removed "connecting..." message
30/5
* ntsc / pal compatability (hopefully works, let me know).
* transparent gifs! :d
* font fix (i included fonts)
* removed annoying dialogs?!
23/5
* better error handling
* fixed remote issues
* now exit by pressing (back) on controller or (menu) on remote
* updated required python libs
22/5
* cache dir moved to z:\\
* font size update
* code cleanup
* back keyaction fixed
* return to home on error
* escaped characters fix
* home.xml fix
* strings updated to webradio 2
* easy install (just copy the folders to your xbmc dir)
bugs:
* i cant use action_skip_next/previous to change next/previous page because these are already assigned to the playlist.
* unable to draw rectangles/lines
controller controls:
(a): select
(b): back
(back): exit
up: up
down: down
left: previous page
right: next page
remote controls:
(left) : previous page
(right): next page
(up): move up
(down): move down
(select): select/enter
(menu): exit
http://home.quicknet.nl/qn/prive/sg.homs/screenshot003.jpg
http://home.quicknet.nl/qn/prive/sg.homs/screenshot002.jpg
have fun!
wow! very nice. all it needs is a little cleanup with those colors and perfect.
looks good. i tried to get it to work but i just get a dialog box saying view list: sort by name and then it hangs.
any ideas?
zilvershadow
2004-05-22, 14:06
it is because there had to be a directory q:\\scripts\\cache\\
this is fixed in the new version
bitplane
2004-05-22, 22:28
looking nice! :)
looks promising. it starts fine but i don't get any texts displayed. and i did copy the supplied strings.xml to my box tho i renamed the folder to english2 just so i could keep the original. so with no txts theres nothing to do. second thing: is it usable with dvd remote? third: i can't seem to exit the script once its started? but maybe that is due to that i don't see any text?
and last the images are they downloaded from somewhere? if so it's kinda hard to control the alpha channels. if not, i know all about transparent gifs and gif anims on xbmc so i can help out with that.
zilvershadow
2004-05-23, 00:13
it starts fine but i don't get any texts displayed.
hmm thats bizar that it doesnt display texts. do you see images drawn over the text? cant you see any texts? did you try to run the script from scripts?
second thing: is it usable with dvd remote?
the dvd remote acts a little weird. when i press a key the script ends. it seems that the remote sends more than one buttonpress that causes the script to exit. i'm working on it. *it is better to control it with the controller atm.
third: i can't seem to exit the script once its started?
you can exit using the black button. or menu on remote.
and last the images are they downloaded from somewhere? if so it's kinda hard to control the alpha channels. if not, i know all about transparent gifs and gif anims on xbmc so i can help out with that.
the images are downloaded and stored on hdd. it should be possible to detect the alpha channels with some coding so i have the right colorkey
i don't seem to have any texts @ll. the images are there. when i go right with dvd-remote button images dissapear and there are no texts 'under' the gfx. navigation worx so the script seems to run fine.
i don't usually have my gamepad connected. maybe i'll wait or maybe i'll connect one. *http://www.xboxmediaplayer.de/forums/non-cgi/emoticons/tounge.gif
exiting don't work with 'menu' on remote or 'black' on gamepad (for me). have to shut down xbox to reset.
re alpha channels: coding? now you lost me http://www.xboxmediaplayer.de/forums/non-cgi/emoticons/wink.gif
i have the same issues as floink.
no text cannot navigate past the first screen and cannot exit.
andrewjm
2004-05-23, 10:31
it loads fine and shows all the listings, but i cannot get it to play any music. when i click on a song, it loads the next page, but i hear nothing...
the first page says database offline. does this have something to do with it?
zilvershadow
2004-05-23, 11:02
i have the same issues as floink.
no text cannot navigate past the first screen and cannot exit.
i found out that this texts missing is a skin issue (i had it too with blackblue). try mediacenter.
btw. strings.xml is not nececerely needed. you need it when you want a menuitem on your homescreen. so you don't need it when you do not update the skins home.xml
i hope this is clear.
zilvershadow
2004-05-23, 14:11
i don't seem to have any texts @ll. the images are there. when i go right with dvd-remote button images dissapear and there are no texts 'under' the gfx. navigation worx so the script seems to run fine.
i don't usually have my gamepad connected. maybe i'll wait or maybe i'll connect one. *http://www.xboxmediaplayer.de/forums/non-cgi/emoticons/tounge.gif
exiting don't work with 'menu' on remote or 'black' on gamepad (for me). have to shut down xbox to reset.
re alpha channels: coding? now you lost me http://www.xboxmediaplayer.de/forums/non-cgi/emoticons/wink.gif
texts not showing is a skin issue, try mediacenter. i fixed the dvdremote. now images dont disappear anymore.
you can exit with menu now i hope. it works on my xbox.
maybe you can look at the alpha channels. i'm sorry for making you so confused. http://www.xboxmediaplayer.de/forums/non-cgi/emoticons/tounge.gif forget about the coding.
i posted a bugreport on this too:
http://www.xboxmediaplayer.de/cgi-bin....;t=4205 (http://www.xboxmediaplayer.de/cgi-bin/forums/ikonboard.pl?act=st;f=3;t=4205)
maybe you are willing to look at it?
thanks
very impressive. all works well for me. you were right, its better than the itunes you were working on. :lol:
been playing around with this for most of the afternoon and it's just fantastic. only problems i've been having seem mostly to come from the design of the webradio2 service having too many streams that are poorly organized.
looking around at the various kml resourses online it seems like it would be reasonably easy and straight forward to add some additional features. specifically, to address the issues i was having it would be great to have a way to store and access favorite stations.
the way i'd conceive of implementing this would be to alter the browser such that it inserts an additional button when displaying a specific stream's information from webradio. this would allow for a stream's information to then be added to a local text file. from the text file it should be possible to create an asp page that could be served from the built in web server to create a dynamic kml results from the favorites text file that could be displayed via the browser. this can then all be tied together nicely with a simple start page pointing to both the favorites page and the standard webradio source.
-mysom
andrewjm
2004-05-24, 02:25
why is it that i cannot hear anything play though this?
is there some setting i have to do or something? it says database offline on the menu page, does that have something to do with it?
zilvershadow
2004-05-24, 09:59
why is it that i cannot hear anything play though this?
is there some setting i have to do or something? it says database offline on the menu page, does that have something to do with it?
do you have the newest version installed? what version of xbmc do you have. does it load the playlist? did you check the debug screen? (press white button or info button on the scripts page to show the debug screen.) please be more specific. database offline has nothing to do with it. http://www.xboxmediaplayer.de/forums/non-cgi/emoticons/wink.gif
greets
zilvershadow
2004-05-24, 10:12
specifically, to address the issues i was having it would be great to have a way to store and access favorite stations.
i was also thinking about this but slightly different:
* when you start the browser, it will show you a screen with your favorites on it.
* there are also different kml sites from which you can select
when you select an item it loads the browser and shows you the page.
* you can add favorites by a simple button press.
so no webserver involved. it could be an idea because you can share your favorites with others, but for now it is too much work. http://www.xboxmediaplayer.de/forums/non-cgi/emoticons/tounge.gif
regards
texts not showing is a skin issue, try mediacenter. i fixed the dvdremote. now images dont disappear anymore.
beeing the author of the retro skin i'd like to know what those issues are so i can fix retro and also notify other skinners what to do http://www.xboxmediaplayer.de/forums/non-cgi/emoticons/wink.gif is there more to it then just making sure there is a compatible font included in the skin?
maybe you can look at the alpha channels. i'm sorry for making you so confused. *http://www.xboxmediaplayer.de/forums/non-cgi/emoticons/tounge.gif forget about the coding.
its just that i can't do any coding whatsoever :)
i posted a bugreport on this too:
http://www.xboxmediaplayer.de/cgi-bin....;t=4205 (http://www.xboxmediaplayer.de/cgi-bin/forums/ikonboard.pl?act=st;f=3;t=4205)
the thing with xbmc is, in my experience, for gifs you have to have true transperancy. you cannot use a colorkey to get transparency. so fex in photoshop when creating the gif, use the layer transperancy as transperant parts. this has to do with the way xbmc interprets gifs which in some cases is done trough code that frodo made by reverse engineering gif-images (not sure if i explainded that right :) ). thats why i earlier was talking about how to control what images to be used. the images beeing downloaded might not be saved in the way xbmc want them. if you show me how you want the images to look i'll make them look that way in xbmc.
edit: come to think of it what i am talking about is the skin engine. python might have a whole different way of dealing with gifs. if so i probably can't help you...
zilvershadow
2004-05-24, 16:31
the thing with xbmc is, in my experience, for gifs you have to have true transperancy.
i do not understand for what purposes the colorkey is needed then. as when the gifs are 32bit true transparant do not need any colorkey. in my opinion this colorkey is useless ???
i've looked in cximage library used to init the pictures. they support alpha channels. maybe some dev can look at it? it shouldn't be too difficult to fix this though.
i did not create the kml pages so i cant do anything with these images except that i could parse the images and save them in a 'correct' way so they get transparent.
kml2.5 will support true 32bit gif images with true transparancy (i thought) but this is still in the future.
edit: come to think of it what i am talking about is the skin engine. python might have a whole different way of dealing with gifs. if so i probably can't help you...
nope, python uses the same library engine as xbmc does, so if it works in xbmc with skins, it works with python to.
isn't it the same images that always are used for the script? if so why not include them, with problems corrected, in the distro of the script? thus also giving the possibility for users/skinners to modify the looks. this until someone fixes issues with gif interpretation in xbmc? the thing with skins is that the designer has full control of the gfx so he/she can adapt to the small flaws.
secondly i'd say those downloaded gifs are pretty badly done. the person who created them either have a limited system where theyre to be displayed or don't have good knowledge of how to creat well optimized gif images.
zilvershadow
2004-05-24, 20:04
it is all ripped from the k|i|s|s player. kml is developed by them. as i said, they will soon release a new version (that they announced at cebit 2004.) much better documented too.
i will soon update these images and add them as an update.
onkel bouncy
2004-05-25, 14:25
wow.
amazing.
i will add a webradio-button to my music.
you can use all graphics of my hifi skin, if you want.
perhaps the best way would be the default buttons.
this will be automatically changed by each skin.
must say that i am impressed with this!
very nice indeed!
i have a small suggestion/request for this though:
* record option (record button) from "within" the script so exiting it and moving to my music wouldn´t be needed.
again, very nice job!
keep it up :)
awesome is all i can say. a great big thumbs up to zilvershadow.
it works great when using the mediacenter skin.
i do hope you can find the issue preventing it from working in the other skins as well.
one other minor issue is that the text at the bottom always says "connecting ..." even after the stream has started playing.
zilvershadow
2004-05-25, 21:39
at the moment i've little time to work on the project, but keep on coming with your suggestions, bugs, etc.
i tested the script with some skins now (blueblack, mediacenter, project mayham, visor) and they all seem to work with the skin so i think it's something else. the people that have this problem could tell me what skin they use and what build they have.
san9jay: one other minor issue is that the text at the bottom always says "connecting ..." even after the stream has started playing.i'm working on this and some other things like showing the mp3 title/description and other things mentioned.
one thing i want to clear up that is that this project isn't just an webradio player, you must see it in a wider perspective. kml is a markup language. many people have designed pages for it, including imdb, tvguide, weather and games, and more, like streaming video. what i'm writing is a browser that can browse these pages and draws them correctly to screen.
thanks :d
i tested the script with some skins now (blueblack, mediacenter, project mayham, visor) and they all seem to work with the skin so i think it's something else. the people that have this problem could tell me what skin they use and what build they have.
i haven't been able to test this myself yet but is maybe possible that the text problem is based on missing fonts in the skin? tho i actually doubt it myself. i can't get it to work with retro and i'm using a build from the 21st and the script from 23d.
and i must say it really is an awesome script now that i've been able to run it from mediacenter skin. :d
what a kickass script! nice work.
my only complaint, well other than it not working on other skins, is that it does not seem to properly scale for ntsc. for me, the bottom is cutoff. would it be possible to set the boundaries smaller than the the maximum for the resolution?
that way we can try to accomodate everybody's overscan. for me, if i set the ui calibration to 0,0, i can barely see the bottom menu (red bar).
i normally have my ui calibration at -5, and even then the bottom bar is cutoff.
any chance you can take overscan into consideration?
thanks,
ts
ps: amazing work!
so, i got the script to work with pm.
it is based on the fonts.
for example, in the script we have:
def getfont(font):
if (font == 1):
#print "font24"
return "font24"
else:
#print "font12"
return "font16"
but, pm does not have either font24 or font16. i switched it such that i now have:
def getfont(font):
if (font == 1):
#print "font24"
return "font24"
else:
#print "font12"
return "font14"
and it works with pm skin.
ts
would better to make that fix so that the script looks for a font within a range. fex small font = 12-18 big font 19-32, or something. i'm no coder so i wouldnt know how to do this or how hard it would be to do. but my guess is it would cover more skins :)
glad tslayer has found the issue with the other skins.
i am using the latest cvs and tried it with pm, blackblue classic.
the script does not work with the above skins.
zilvershadow
2004-05-26, 13:32
i will fix this asap.
Gamester17
2004-05-26, 13:42
one thing i want to clear up that is that this project isn't just an webradio player, you must see it in a wider perspective. kml is a markup language. many people have designed pages for it, including imdb, tvguide, weather and games, and more, like streaming video. what i'm writing is a browser that can browse these pages and draws them correctly to screen.very cool script!, and amazing that it like you say has the potential of being even greater, like weather (http://www.tinystocks.com/k/docs/kiss_wm.html), tv guide (http://www.tinystocks.com/k/docs/kiss_tv.html), imdb (http://www.tinystocks.com/k/docs/kiss_imdb.html) and games (http://www.tinystocks.com/k/docs/kiss_games.html) http://www.xboxmediaplayer.de/forums/non-cgi/emoticons/cool.gif
bobrooney_78
2004-05-26, 14:13
an amazing script!!!
should be integrated in my music in xbmc 1.0 final.
*applause*
dylanbox
2004-05-26, 22:33
hi... it just doesn't want to start :(
using xbmc 05-26, 22 doesn't work either.
26-05-2004 21:29:26 -->python initialized<--
26-05-2004 21:29:26
26-05-2004 21:29:26 traceback (most recent call last):
26-05-2004 21:29:26 file "q:\scripts\simplekml.py", line 20, in ?
26-05-2004 21:29:26
26-05-2004 21:29:26 import sys, time, string
26-05-2004 21:29:26 importerror
26-05-2004 21:29:26 :
26-05-2004 21:29:26 no module named string
tia,
dylan
you probably did not install python in xbmc.
make sure you have uncompressed the python.rar into the python directory.
ts
zilvershadow, excellent script!
i've been looking at the script because i want modify it for different screen resolutions. my plan is to use self.getscreenheight inside processelement to determine the screenheight and set proper scaling factors. this value can then be used to correct the return values from the getwidth,getheight,getx,gety functions. *but to do this correctly, i need to understand the reasoning behing y always being scaled by 1.2.
my assumption is that your assuming a pal screen (720x576) and the kiss screen resolution is 640x480. 576/480 = 1.2. but if this is true, why arent you also scaling the x coordinate by 1.125. (720/640)
also, another thing i was thinking about was clecking the downloaded playlist to see if it had atleast one entry in it. if numentries was zero, put up a dialog box saying that the stream was offline or something similar.
zilvershadow
2004-05-29, 20:35
the res of kiss is 720x480 so i only had to scale the vertical axes. i should use getwidth getheight getx, gety for the scaling. you can indeed get the screenwith with:
w = self.getwidth()
h = self.getheight()
then you can scale with a simple formula.
as for the playlists. i shouldnt change that, as when it doesnt start the stream is down. so.. and otherwhise you get the shoutcast dialog.
the script is not yet finished. a lot of work to do but i'm very busy now.... http://www.xboxmediaplayer.de/forums/non-cgi/emoticons/tounge.gif
greets
johnney5
2004-05-29, 22:46
hello!
this script is awesome i just got it working. great work, all you need to do now is fix those non-transparent vibrant colors =)
keep up the good work man, its appreciated
zilvershadow
2004-05-30, 16:02
<span style='color:red'>new fixes:</span>
* ntsc / pal compatability hopefully works.
* transparent gifs! :d
* font fix (i included fonts, there's no need to overwrite them if you have them already)
download kmlbrowser here:
kml browser v0.9 (http://home.quicknet.nl/qn/prive/sg.homs/kmlbrowser.rar)
maybe someone can provide me a nice graphic for a menuitem in the xbmc home screen.
please contact me
thanks
heh cool, u already did it for me. guess i wont waste my time updating the scale factors in version 0.8 then. i'll try out the new version in 720p and 1080i and let you know how it looks.
i know what your saying, if you dont get the shoutcast dialog box, the stream is down. the problem is that the page still says "connecting..." on the bottom. its confusing. at the very least, that should change to reflect that theres no stream available. (unless this has also changed with version 0.9)
i just want to say again that this is a great piece of software. keep up the good work.
anyone else having problems with the script locking up whilst you try to navigate back through the menus?
zilvershadow
2004-05-31, 11:50
i also experienced it. i'll try to fix it.
zilvershadow
2004-05-31, 14:21
i made some fixes and added some new features, but too lazy to give an update. check first post message.
download here (http://home.quicknet.nl/qn/prive/sg.homs/kmlbrowser.rar)
a very nice script, thanx for that zilvershadow :). must also ask this. is it just me who still have lockups when browsing the meny in the newest version?.
this script is crashing a lot on my box (very anoying :-)).
there seems to be a problem in the image code that is only there when loading a lot of gif images (which is happening with this script).
i'll have a look at it to see if it can be fixed.
i feel like a fool, i don't know what i am doing wrong. i have put the script in the script dir. the python files in the python dir. and made sure all my themes had the required font files. so after that i head over and select scripts, i can see the python file in there select it and hit "a" for about half a second it falshes (running) next to the filename...
what am i missing =/
sorrie if this is a really dumb question, read though all the posts and didn't find anything. oh, i'm also using the 5/29/04 version of xbmc. thanks in advance!
edit:
just found out how to put the scritps run info to the screan, reads:
-->python initilized<--
traceback (most recent call last);
*file "q:\script\simplekml.py" , line 21,in?
* *import, sys, time, string
importerror: no module named string
does this mean i am suppose to put the script on my q:? thanks again...
edit... again :
bah, don't know when i did it but at some point i must have installed the 1.0 python set. upgraded to the 1.3 and now everything is golden... well almost, i crash some time but you have heard allot about that. sorry to have killed some must space =p
zilvershadow
2004-06-01, 09:38
this script is crashing a lot on my box (very anoying :-)).
there seems to be a problem in the image code that is only there when loading a lot of gif images (which is happening with this script).
i'll have a look at it to see if it can be fixed.
well darkie that would be good because i don't know exactly what to do and why it locks because it locks up randomly.
btw, forgot to tell it is a problem in the xbmc code, not your script. :-)
nicklewis0
2004-06-02, 01:14
wow.
amazing.
i will add a webradio-button to my music.
you can use all graphics of my hifi skin, if you want.
perhaps the best way would be the default buttons.
this will be automatically changed by each skin.
i really want to do this too. *i've tried searching these forums and am totally lost!!
can someone help? *i just want to know what i need to do (what file(s) to edit, exactly what needs to be entered into that file) to have a web radio button in 'my music' that will lauch the kml script. *
sorry for the noob question but i'm no programmer!
btw *this is the first time i've ever done anything with python. *i got this kml browser working and it's fantastic!! *brilliant stuff :)
tia
nick
further to the above, there doesn't appear to be a home.xml file in the .rar file to overwrite the standard home.xml which the earlier release had i believe, so i can't get a webradio button on my homepage...
hello, just to jump right in. i'm a noobie, so tell me if i have done the wrong thing.
i transfered all the files to my box.
python (v1.3) files to e:\apps\xbmc\python
kmlbrowser (v0.9) files to e:\apps\xbmc\scripts
i then copied the python files from the kmlbrowser.rar to
e:\apps\xbmc\python
is this all i have to do as far as copying files to the box is concerned?
i then open xbmc (26\5 build and running media center skin) and go to settings\general\scripts. i then run the simplekml.py script. when it is loading it say's that it can't retrieve the image files, then it just hangs.
the box is connected online because the weather and cddb\imdb is working.
has anyone else seen this problem, and how to fix it?
hi all ,
im toho of the team streampack (www.gueux.net/xbmc-stream)
nice job , your script is excellent , i love this ^^
good work
do you project to add item ?? (rip,quality,..afine search etc..)?
other question , this scrypt is connected to a data base ?
it's possible to add this script in future xbmc wip ?
have you created a scrypt for the tv pack ?
this is a great idea for tv stream, no ?
do you want to work with the streampack for creating a script for us ??
if yes contact me , or visit the site : )
thanks for this share , and future version^^
++
DreamWeb
2004-06-03, 07:04
this is a fantastic looking script.. and, i think it's gonna be brilliant... but, like so many other people here, it randomly locks up on my xbox. completely random. it's very odd.
d.
this is a fantastic looking script.. and, i think it's gonna be brilliant... but, like so many other people here, it randomly locks up on my xbox. completely random. it's very odd. a temporarily solution would be to use png files instead of gifs. dunno if it's possible with this script though
this is a fantastic looking script.. and, i think it's gonna be brilliant... but, like so many other people here, it randomly locks up on my xbox. *completely random. *it's very odd. a temporarily solution would be to use png files instead of gifs. dunno if it's possible with this script though
from what i understand the script download all the images every time its used (or use the ones in cache). which would mean that only images defined in the original code can be used?
just tried using ver.10. currently have the same problems as weedboy: script starts and then hangs with a "retrieving images" message.
the last version i had was 0.7 and that worked very well fo me but i overwrote it with the new installl. tried 0.5 from the download page but that's having problms as well. has something changed at the site?
Chokemaniac
2004-06-04, 00:43
this thing is pretty cool :thumbsup:
would it be possible to change the textures for the buttons?
the "main menu"/"go back..." button on top of the lists should have the same textures like the two buttons in the title screen imo or a tleast something else than just inverting the font. that would be pretty cool.
also i would really apreciate a "record" button :d
what can i say... *:bowdown:
just love it... *:thumbsup:
zilvershadow would it be possible to keep the old versions of your script available for download. i have the feeling the old version 7 did not have the problem of locking up the xbox. unfortunately i overwrote my download with the latest version.
zilvershadow
2004-06-04, 22:46
san9jay you could remove the files from the q:\\scripts\\simplekml\\ dir. try that.
wesleychef
2004-06-05, 04:34
iam tring to quick launch button for the internet radio python i can launch it under the script button but not under my music ass a quick launch button here is the .xml script
<!-- my music shares !-->
<music>
<default>f:\music</default>
<bookmark>
<name>xbox music</name>
<path>f:\music</path>
</bookmark>
<bookmark>
<name>internet radio</name>
<path>c:\xbmc\script\simplekml.py</path>
</bookmark>
<bookmark>
<name>dvds</name>
<path>d:\</path>
</bookmark>
i also tried to do a quick launch hddloader and can not but i can scan for programs and find the file and load it through scan??i have tried the latests versionof xbmc i have tried the last 3 versions/ what is the deal i [b][u] :kickass
you cant run a script from a bookmark like that. you can, however, modify the "mymusic" skin .xml files and add a button to which launches the kml browser.
you'll need to give your new control a unique id and modify the onup, ondown, onleft, onright tags of those controls around it for it to get focus.
this script kicks ass. locks up alot when browsing for a new station. i didnt install the fonts. im running a 06-03-04 cvs xbmc. thats newer then the kml2 script. should i still overwrite fonts?
i wish xbmc team would add a button for this script to the home page like they did with weather.
zilvershadow
2004-06-06, 21:40
i'm developing the script in visual c++ so it can be added as a patch. c++ gives me more freedom.
i probably will not add anything more to the script from now. if you want to download the older version: http://dwl.xboxmediacenter.de (http://dwl.xboxmediacenter.de/comment.php?dlid=41&phpsessid=d793a9bc583038d7b80e0f370fb3a9c4)
one of my last updates v0.11 are better fonts that support more characters so no weird '[]' stuff.
download (http://home.quicknet.nl/qn/prive/sg.homs/kmlbrowser.rar)
grtz
edit: i just received some messages from the cvs mailing list that gif loading crashes are fixed. great! :thumbsup:
sleepola
2004-06-07, 19:33
hello to everyone.
has anyone had any success running this script with a proxy server.
i use a software proxy on my pc to connect my xbox and other pcs / handheld etc to the net.
xbmc has settings to use a proxy but this script seems not to use proxy settings.
any ideas ?
tia.
zilvershadow
2004-06-07, 20:32
i'll have to implement proxy compatibility.
or you could do it yourself:
http://www.python.org/doc/current/lib/module-urllib.html
sleepola
2004-06-08, 09:22
i'm giving it a try. so far i've managed to get downloadxmldocument to go through the proxy, the rest looks a bit more tricky. this is the first time i've tried anything with python, always good fun to have a bash at something new.
thanks zilvershadow for the script and the link.
Gamester17
2004-06-08, 13:10
i'm developing the script in visual c++ so it can be added as a patch. c++ gives me more freedom.
supersweet!!! :kickass:
onkel bouncy
2004-06-08, 17:05
>i'm developing the script in visual c++ so it can be added as a patch. c++ gives me more freedom.
does this mean we can expect a new version of klm2 within a cvs after xbmc 1.0 ?
zilvershadow
2004-06-08, 20:53
i hope so :)
onkel bouncy
2004-06-09, 01:41
nice.
:o
... let's talk about the other features ... tv-guide, weather, ...
is there a chance to see some more features in the near future ?
Hullebulle
2004-06-09, 13:21
weather? ??? its part of xbmc quite some time already.
onkel bouncy
2004-06-09, 16:36
weather (http://www.tinystocks.com/k/docs/kiss_wm.html), tv guide (http://www.tinystocks.com/k/docs/kiss_tv.html), imdb (http://www.tinystocks.com/k/docs/kiss_imdb.html) and games (http://www.tinystocks.com/k/docs/kiss_games.html)
there are some more options in this weather.
i see the weather.com logo in one of the screenshots, so i hope it's not not hard to add these options / screens to the already implemented weather.
or to klm2 browser.
God-Send
2004-06-10, 11:06
i can't get any listing on either of the 2 menu's. everything is installed just fine but do i need to add the many shoucast music files to somewhere on here or should it download the links to the music servers automatically?
btw it just constantly says database offline and streams online 0. * it is 3:00 am central us time.
i'm now having the same problem as god-send =/
yes, there appears to be a problem with the online music database. if you open http://194.192.15.21/webradio2/kml/index.php?reload=true in a web browser, you can see that the page is still online but it doesn't contain any streams.
do anyone know of any other kml pages which work with the xbmc kml browser?
peace,
-y
iafilius
2004-06-11, 12:05
the kiss webradio2 seems to be inactive indeed, so i tried some nice kml sites from:
http://kissportal.pl/directory/
however, without much luck.
anyone experiences with those kml sites?
greetings,
when i load the script i don't see any text on the 2 bars ... what am i doing wrong?
here's my view
screenshot (http://mrhyde.cnchost.com/screenshot012.bmp)
zilvershadow
2004-06-14, 11:39
when i load the script i don't see any text on the 2 bars ... what am i doing wrong?
you did not install the fonts. you did not copy the files in the simplekml dir to scripts\simplekml.
as you see, the streams are up again.
you did not install the fonts.
installed the script to /scripts. installed the english.xml file to /f:/apps/xbmc/language/english/
installed simplekml.py to /f:/apps/xbmc/scripts/
installed all files in python lib to /f:/apps/xbmc/python/lib/
installed *home.xml to /f:/apps/xbmc/skin/project mayhem/pal/ because mediacenter skin is acting weird.
still no go...where are these fonts you're talking about?
zilvershadow
2004-06-14, 23:01
you probably installed an old version.
download this version (http://home.quicknet.nl/qn/prive/sg.homs/kmlbrowser.rar)
did that...now my dash looks funky (http://mrhyde.cnchost.com/screenshot014.bmp)
chicorico
2004-06-16, 01:09
hi, i've read this thread about ten times and used the search function but to no avail - after loading the script xbmc locks up with error:
"could not parse node"
any ideas? i'm using a very recent xbmc cvs - also i have a new button in the default skin that boots the kml app but again get the freezing. also the button has no text, but i have installed the fonts to the correct /dir
thanks for any help
chico
wesleychef
2004-06-16, 04:55
i wrote before that i wanted a quick launch button for this what i really wanted is to click on my music and then in there i want to open up this script but when i edited the .xml file like this
<!-- my music shares !-->
<music>
<default>f:\music</default>
<bookmark>
<bookmark>
<name>internet radio</name>
<path>c:\xbmc\script\simplekml.py</path>
</bookmark>
[u]
i dont even see the kml file but i do see all of my music what do i do because it is such a pain to go to the script the other way also when i try to put a "button" of folder for my game copier hddloader i can not see it either but if i scan for programs under my programs it finds it and i can click on the program or icon??
Gamester17
2004-06-16, 11:46
i wrote before that i wanted a quick launch button for this what i really wanted is to click on my music and then in there * i want to open up this script but when i edited the .xml file like this
<!-- my music shares !-->
<music>
*<default>f:\music</default>
*<bookmark>
*<bookmark>
* *<name>internet radio</name>
* *<path>c:\xbmc\script\simplekml.py</path>
*</bookmark>
*[u]
i dont even see the kml file but i do see all of my music what do i do because it is such a pain to go to the script the other way also when i try to put a "button" of folder for my game copier hddloader i can not see it either but if i scan for programs under my programs it finds it and i can click on the program or icon??simply because there is no such function coded into xbmc ( see => http://www.xboxmediaplayer.de/cgi-bin....;t=4545 (http://www.xboxmediaplayer.de/cgi-bin/forums/ikonboard.pl?act=st;f=4;t=4545) )
mvoosten
2004-06-16, 14:09
11/6 build contains a dedecated webradio button under mymusic that does the thing you want. it links to the klm browser and it rocks!
11/6 build contains a dedecated webradio button under mymusic that does the thing you want. it links to the klm browser and it rocks!
i'm using the 06-19 build and i don' see this feature. the xml editing is a little intense - does anybody out there have a mymusic.xml already setup for launching this for the xbox media experience (xme) skin?
<control>
<description>webradio button</description>
<type>button</type>
<id>420247</id>
<posx>64</posx>
<posy>405</posy>
<label>webradio</label>
<onleft>50</onleft>
<onright>50</onright>
<onup>10</onup>
<ondown>2</ondown>
<script>q:\scripts\simplekml.py</script>
</control>
paste this in the the all the mymusic*.xml files making sure to edit the button directly above to be able to seelect the webradio button when you press down on the dpad
e.g. <ondown>420247</ondown>
obviously mess around with the button position to suit the skin
luma its in the project mayhem skin.
thanks for the tip nimbles (and i especially like the control id) - i dropped that into mymusicsongs.xml for the xme skin, changed the "record" and "view" entries to sort out the onup/ondown, and it works great! not sure i would have figured all that out myself, but it makes perfect sense now that i've done it. think i'm going to have to find some more scripts to screw around with now that i know how to integrate them into the skins. thanks again!
i'm running cvs build 19-6-04 and there is a button for webradio :) it works great
in mbmc build 6-19-04
i don't see the webradio button in project mayem skin
what skin do you see it in?
i sued to see it.. i can run the script. not sure whats going on.
is that button a function of the xbmc or the skin?
its a function of the skin. the skin needs to tie a button id to the script. nimbles instructions will work to add it to any skin. (it'll be up to you to position the button, and then change the necessary onup,ondown,onleft,onright tags accordingly.)
and you're right. the 6-19 binary version from "the usual places" has the button, but the version of the skin i just downloaded from chokemaniac.net doesnt. i guess who ever package it up, add the button themselves.
teh 6-17 version has a kml tab right below, wheather. when i saw it and then tried, i was like omfg, this is so kuwl. i ahvn't been following this at all and i was showcked at how well it works and how good it looks. i tried the 6-19 version and did not see any tab like the 6-17 version had. anyway this rocks. :kickass:
nicklewis0
2004-06-22, 22:27
i gotta agree, this thing is the absolute business. i have listened to the funky house and stuff on planetsoul network radio non-stop for days on end now and u just don't get soulful house like it on the radio in south wales, uk. i did not believe that my xbox would ever get used this much! i haven't played a game on it in weeks...
the team behind xbmc would be crazy not to add this in as a feature of xbmc on the 1.0 version. it's quite possibly (in my opinion) the best thing i've come across since first installing xbmc - it's that good!
i'm runnging standard skin of xbmc there is a button i my music for webradio
i downloaded 0.5 which was recently posted on python database, and it fails to work, i came to the conclusion that it was the fonts, as you changed the sizes, yet you didnt include the new fonts?
zilvershadow
2004-06-24, 23:18
is anyone willing to take over my project and develop it in c++? i'm much too lazy (read buzy) and i do not have the time anymore.
it would be cool to introduce some new features too:
- favorites/bookmarks
- streaming video support
- compatible with more kml sites (like tinystocks.com)
- draw rectangles, lines (full kml support)
wouldn't that be cool?
thanks,
zilvershadow
wesleychef
2004-06-25, 04:46
i am trying to put in a button but it doesnt seem to work i am doing this under the skin media center mymusicsons.xml here is the script please help
<window>
<id>501</id>
<defaultcontrol>2</defaultcontrol>
<controls>
<control>
<description>bg</description>
<type>image</type>
<id>1</id>
<posx>0</posx>
<posy>0</posy>
<width>1280</width>
<height>720</height>
<texture>background.png</texture>
</control>
<control>
<description>music bg</description>
<type>image</type>
<id>1</id>
<posx>55</posx>
<posy>20</posy>
<texture>panel-music.png</texture>
</control>
<control>
<description>panel</description>
<type>image</type>
<id>1</id>
<posx>50</posx>
<posy>195</posy>
<width>180</width>
<height>200</height>
<texture>panel.png</texture>
</control>
<control>
<description>number of files label</description>
<type>label</type>
<id>12</id>
<posx>270</posx>
<posy>655</posy>
<label>-</label>
<font>font14</font>
<textcolor>ffb2d4f5</textcolor>
</control>
<control>
<description>songs text label</description>
<type>label</type>
<id>14</id>
<posx>200</posx>
<posy>25</posy>
<label>134</label>
<font>font14</font>
<textcolor>ffb2d4f5</textcolor>
</control>
<control>
<description>view-as button</description>
<type>button</type>
<id>2</id>
<posx>64</posx>
<posy>218</posy>
<label>100</label>
<onleft>2</onleft>
<onright>50</onright>
<onup>10</onup>
<ondown>3</ondown>
</control>
<control>
<description>sort-by button</description>
<type>button</type>
<id>3</id>
<posx>64</posx>
<posy>250</posy>
<label>103</label>
<onleft>50</onleft>
<onright>4</onright>
<onup>2</onup>
<ondown>6</ondown>
</control>
<control>
<description>sort asc</description>
<type>togglebutton</type>
<id>4</id>
<posx>221</posx>
<posy>258</posy>
<label>-</label>
<onleft>3</onleft>
<onright>50</onright>
<onup>4</onup>
<ondown>4</ondown>
</control>
<control>
<description>middle bar</description>
<type>image</type>
<id>1</id>
<posx>64</posx>
<posy>290</posy>
<width>145</width>
<texture>middle-bar.png</texture>
</control>
<control>
<type>selectbutton</type>
<id>6</id>
<posx>64</posx>
<posy>305</posy>
<label>457</label>
<onleft>50</onleft>
<onright>50</onright>
<onup>3</onup>
<ondown>7</ondown>
</control>
<control>
<description>playlists button</description>
<type>button</type>
<id>7</id>
<posx>64</posx>
<posy>337</posy>
<label>136</label>
<onleft>50</onleft>
<onright>50</onright>
<onup>6</onup>
<ondown>8</ondown>
</control>
<control>
<description>search button</description>
<type>button</type>
<id>8</id>
<posx>64</posx>
<posy>369</posy>
<label>137</label>
<onleft>50</onleft>
<onright>50</onright>
<onup>7</onup>
<ondown>9</ondown>
</control>
<control>
<description>scan button</description>
<type>button</type>
<id>9</id>
<posx>64</posx>
<posy>401</posy>
<label>193</label>
<onleft>50</onleft>
<onright>50</onright>
<onup>8</onup>
<ondown>10</ondown>
</control>
<control>
<description>record button</description>
<type>button</type>
<id>10</id>
<posx>64</posx>
<posy>433</posy>
<label>264</label>
<onleft>50</onleft>
<onright>50</onright>
<onup>9</onup>
<ondown>11</ondown>
</control>
<control>
<description>webradio button</description>
<type>button</type>
<id>11</id>
<posx>64</posx>
<posy>462</posy>
<label>webradio</label>
<onleft>50</onleft>
<onright>50</onright>
<onup>10</onup>
<ondown>2</ondown>
<script>q:\scripts\simplekml.py</script>
</control>
<control>
<description>listcontrol</description>
<type>listcontrol</type>
<id>50</id>
<posx>262</posx>
<posy>70</posy>
<onleft>51</onleft>
<onright>51</onright>
<onup>2</onup>
<ondown>2</ondown>
<textcolor>ffffffff</textcolor>
</control>
<control>
<description>thumbnail panel</description>
<type>thumbnailpanel</type>
<id>51</id>
<onleft>2</onleft>
<onright>2</onright>
<onup>2</onup>
<ondown>2</ondown>
<textcolor>ffffffff</textcolor>
</control>
</controls>
</window>
wesleychef
2004-06-25, 04:49
sorry about the long script lol i did not relize the error of my ways :nuts:
Gamester17
2004-06-25, 12:10
is anyone willing to take over my project and develop it in c++? i'm much too lazy (read buzy) and i do not have the time anymore.maybe submit it as an official feature suggestion (rfe) on sourceforge.net and attach any code/spec/docs you written so far? ;)
mrhyde69
2004-07-10, 08:01
i'm pretty lost as to how to add the webradio button to the project mayhem skin...can someone explain please ???
wesleychef
2004-07-12, 00:29
i am just as lost as you and it seems that 100s of people probly read your question non of them are nice enough to answer it. i am not saying that everyone is ike that but i will look at a post and it will have 200 viewers and no replies but the question will be something that is ver easy to answer but sometimes the questions are hard to answere but typing the answer???
zilvershadow
2004-07-12, 20:26
you have to edit the right xml file in the pm skin for that.
Megabyte
2004-07-13, 07:26
i downloaded and installed the lastest kml2 and i am using a 7-9-2004 build of xbmc and i cannot get any streams. is anyone experiencing the same thing. the xbox is getting out over the internet and i am using a windows 2003 server to share its dsl dialup conntection.
whats the deal??
thanks,
joe
mrhyde69
2004-07-13, 07:29
is anyone else having a problem w/ this app right now?
when i load it's telling me that the database is
offline (http://mrhyde.cnchost.com/screenshot001.bmp)
i'm pretty lost as to how to add the webradio button to the project mayhem skin...can someone explain please ???
you need to edit 2 files: pal\home.xml and pal16x9\home.xml (even if you're using ntsc).
in these files, look for the entries for
<control>
<description>my weather normal push button</description>
....
</control>
<control>
<description>settings normal push button</description>
....
</control>
and enter the following to replace those two sections (we're adding a third in the middle):
<control>
<description>my weather normal push button</description>
<type>button</type>
<id>7</id>
<posx>270</posx>
<posy>375</posy>
<width>180</width>
<height>35</height>
<label>8</label>
<font>font14</font>
<hyperlink>2600</hyperlink>
<onleft>10</onleft>
<onright>14</onright>
<onup>5</onup>
<ondown>1337</ondown>
<textoffsetx>13</textoffsetx>
</control>
<control>
<description>web radio normal push button</description>
<type>button</type>
<id>1337</id>
<posx>270</posx>
<posy>412</posy>
<width>180</width>
<height>35</height>
<label>web radio</label>
<font>font14</font>
<script>q:\scripts\simplekml.py</script>
<onleft>10</onleft>
<onright>14</onright>
<onup>7</onup>
<ondown>9</ondown>
<textoffsetx>13</textoffsetx>
</control>
<control>
<description>settings normal push button</description>
<type>button</type>
<id>9</id>
<posx>270</posx>
<posy>449</posy>
<width>180</width>
<height>35</height>
<label>5</label>
<font>font14</font>
<hyperlink>4</hyperlink>
<onleft>10</onleft>
<onright>14</onright>
<onup>1337</onup>
<ondown>2</ondown>
<textoffsetx>13</textoffsetx>
</control>
the only thing i can't quite figure out is how to switch the icon that is displayed on the right. the existing ones are in the textures.xpr which you can't touch without the xdk, but even setting it to use, say, the "home-mymusic.png" already in that texture file is completely beyond me. any hints from the skinners out there?
this is the most useful and best looking script that i have seen! :kickass:
yeh check these screen shots out if you like what you see let me know and i will help you do the same
http://home.comcast.net/~kensingh89/photo.htm
you can find me in #xbmc
just follow the little "blank" rabbit
ok, im running 8.17.04 release of xbmc and the python script wont even load, it just pauses the screen for a sec and then it does nothing. i even threw in the 'webradio' icon and directed it to the correct location. i have attempted to run the script from the scripts section in the settings menu and still no joy.
any word if this thing should work with this release?
thanks,
dwc
iafilius
2004-08-19, 17:15
ok, im running 8.17.04 release of xbmc and the python script wont even load,
hi,
almost the same here, it hangs after a popup "sorting ..." or something. however this is with the 18/08 version.
could you poste a part of the logfile where python generates an error?
here it is;
19-08-2004 11:15:49 info -->python initialized<--
19-08-2004 11:15:49 info
19-08-2004 11:15:49 info traceback (most recent call last):
19-08-2004 11:15:49 info file "c:\scripts\simplekml.py", line 21, in ?
19-08-2004 11:15:49 info
19-08-2004 11:15:49 info import sys, time, string
19-08-2004 11:15:49 info importerror
19-08-2004 11:15:49 info :
19-08-2004 11:15:49 info no module named string
19-08-2004 11:15:49 info
iafilius
2004-08-19, 21:28
i reinstalled now the version from :
http://home.quicknet.nl/qn/prive/sg.homs/kmlbrowser.rar
and works like a charm.
the downloaded version from the download page (xbmc) has the problems mentionned.
(i reinstalled that version too, but the same result)
greetings,
damn that is the same one i am running. mabye i gummed up my xbmc installation.
any thoughts people?
if it can't find the module 'string' you have a problem with your xbmc installation. install it again (including the python files) and test again
interesting, it works with the 1.0final but it wont work with 8.18.04 release.
anyways, im satisified.. this is a awsome add-on for xbmc. :)
Vortex_ICS
2004-08-23, 01:38
interesting, it works with the 1.0final but it wont work with 8.18.04 release.
anyways, im satisified.. this is a awsome add-on for xbmc. :)
i have the same problem, im using 08-18-04 build and it gets stuck when it says "waiting for start"....
--
when was the last update kml had ?? when will it be the next ?
kinghowdy0
2004-08-29, 17:14
yeah my kml browser is not working with my latest cvs build (8-24-04) so i don't know what it is but there's something going on and i don't like it, that's for sure! must have kml!!
MichaelD
2004-08-29, 17:29
hi,
when i start webradio2, a dialog box appears stating a kml document is downloading, but after that nothing happens.
what can be the cause of this? do i have to open a port on my router/firewall?
just installed the kml2 browser - excellent work!
all seems to be ok - just one question... it seems to take a long time (anything up to a minute) to start the audio streams runnning, is this right?
using winamp to get the same stream only takes 1-2 seconds.
all seems to be ok - just one question... it seems to take a long time (anything up to a minute) to start the audio streams runnning, is this right?
using winamp to get the same stream only takes 1-2 seconds.
it's all in the cache.
i believe that for internet streaming it has to cache 4 or 8 mb before it's playing
iafilius
2004-09-03, 08:44
hi,
many kml sites don't work, because some kiss specific variables are checked.
for example:
curl "http://kissportal.pl/kml/index.php?playerid=xxxxxxxxxxxx&playerbrand=kiss&playermodel=dp-500&playerlanguage=0&playerfirmware=280"
gives an kml document, where just:
curl http://kissportal.pl/kml/index.php
doesn't.
the kiss also does http 1.0 where the python default is http 1.1 which causes also (some) non-working kml sites.
any idea if "kiss player faking" is going to be implemented?
at least i realy like to have it.
greetings,
arjan
iafilius
2004-09-03, 09:04
another thing to add,
when i replace the default url to:
http://kissportal.pl/kml....are=280 (http://kissportal.pl/kml/index.php?playerid=xxxxxxxxxxxx&playerbrand=kiss&playermodel=dp-500&playerlanguage=0&playerfirmware=280)
the script complains about loading:
http://kissportal.pl/kml/gen/back.jpg?pid=xxxxxxxxxxxx
it does download it, but gives an error.
i'm i right it doesn't suppoort jpeg files?
thanks in advance,
greetings,
arjan
zilvershadow
2004-09-03, 14:10
this browser is especialy written for webradio. if someone is willing to write a kml browser fully capable to do everything kml desires you have to take a look at http://sourceforge.net/tracker....=581841 (http://sourceforge.net/tracker/index.php?func=detail&aid=982882&group_id=87054&atid=581841)
would it be hard to add nsv streams (video) to the gui if a list of the available stations were available (mplayer already ok)? apparently (i can only find audio streams), this info should be listed on the yp.shoutcast.com site (also used by kml browser?):
somebody is already working on the same thing for their web-site:
http://www.winamptv.org/list/
a) "this list is autogenerated by a program created by the 1337 ken52787"
b) "i haev emailed tom and we all hope he responds so i can parse the yp instead of take forever to add all these links, it looks bad too and an automated system (which we may make in a few days anyway) would look nicer and produce easy to search results."
--------- related topic ---------
http://www.xboxmediaplayer.de/cgi-bin....;t=6093 (http://www.xboxmediaplayer.de/cgi-bin/forums/ikonboard.pl?act=st;f=1;t=6093)
-------------------------------
it's already possible for us to parse nsv streams and shoutcast streams the way winamp does it. the only thing that has to be done is writing a nice gui for it.
iafilius
2004-09-04, 08:49
hi,
i'm working on a webradio2 "lookalike" and where the database contains shoutcast,tv,webcam etc streams.
it works with the kmlbrowser, or a sligtly modded kmlbrowser.
qualityrating etc. (userfeetback from the kmlbrowser) is one of the extra features, and registered users shoud be able to add streams.
filling the database on a large scale has to be done, and i can use a lot of links with losts (of working) media links.
suspect a workable demo in a week or so.
if someone likes to help to fill the database, and can create an importable (mysql) format of streams (which matches my database layout) i'd realy apreciate it.
greetings,
arjan
zilvershadow
2004-09-12, 14:17
hi,
i'm working on a webradio2 "lookalike" and where the database contains shoutcast,tv,webcam etc streams.
it works with the kmlbrowser, or a sligtly modded kmlbrowser.
qualityrating etc. (userfeetback from the kmlbrowser) is one of the extra features, and registered users shoud be able to add streams.
filling the database on a large scale has to be done, and i can use a lot of links with losts (of working) media links.
suspect a workable demo in a week or so.
if someone likes to help to fill the database, and can create an importable (mysql) format of streams (which matches my database layout) i'd realy apreciate it.
greetings,
arjan
hi iafilius,
great to hear that you're designing a site foor the kmlbrowser. that is what the browser is ment for! :thumbsup:
i'd love to be the first to try so keep me updated about your project.
greats,
zilvershadow
iafilius
2004-09-12, 14:36
hi,
i'm working on a webradio2 "lookalike" and where the database contains shoutcast,tv,webcam etc streams.
it works with the kmlbrowser, or a sligtly modded kmlbrowser.
qualityrating etc. (userfeetback from the kmlbrowser) is one of the extra features, and registered users shoud be able to add streams.
filling the database on a large scale has to be done, and i can use a lot of links with losts (of working) media links.
suspect a workable demo in a week or so.
if someone likes to help to fill the database, and can create an importable (mysql) format of streams (which matches my database layout) i'd realy apreciate it.
greetings,
arjan
hi iafilius,
great to hear that you're designing a site foor the kmlbrowser. that is what the browser is ment for! :thumbsup:
i'd love to be the first to try so keep me updated about your project.
greats,
zilvershadow
hello,
have a look on my posting from yesterday:
http://www.xboxmediaplayer.de/cgi-bin....;t=6346 (http://www.xboxmediaplayer.de/cgi-bin/forums/ikonboard.pl?act=st;f=21;t=6346)
you'll notice a slighlty modded kmlbrowser (works with original also, just url should match)
let me know what you think about it.
perhaps you want to include those little mods into the current version.
greetings,
arjan
GeminiServer
2004-09-13, 02:56
here is a temporar fix for those who are using the kml2 browser with the newest xbmc cvs release and has problem with it.
i don't analized the error but it seems there is something going wrong with the pictures size detection. ;) hey.. i just looked 4 minutes over the script...
update:
hehe some more minutes.. here is the final fix for the kml2 browser. i now it's not the best solution but hey it works on ervery xbmc cvs release ;), testet with cvs 12.09.2004
here is the code, just copy and save it simplekml.py then copy it to: q:\scripts\simplekml\ that's all...
btw: best viewed with the
project mayhem kml browser skin v2 (http://www.critikill.net/content/file9.asp)
regards
geminiserver
#
# simplekml.py is written by gabriel <gabriel@livinstyle.nl>
#
#
# "i am gabriel, who stands in the presence of god,
# and i have been sent to speak to you and to
# bring you this good news."
#
#
# this programs is licensed under the gnu public license
#
# you're welcome to redistribute this software under the
# terms of the gnu general public licence version 2.0
# or, at your option, any higher version.
#
# manus you helped me alot by your vb.net source-code
# open-source is the word!
#
# 12.09.2003 --> geminiserver fixed release! for xbmc cvs >=10.09.2004
#
#init
import sys, time, string, xbmc, xbmcgui, image, urllib, xml.dom.minidom
from os import path, unlink
keyactions = {}
preloadedimages = {}
activemenu = -1
menu = []
menuitemlist = []
#scaling init
xscale = 0
yscale = 0
xwidth = 720
xheight = 480
cache_dir = "q:\\scripts\\simplekml\\"
playlist_file = cache_dir + "filename.pls"
action_move_left = 1
action_move_right = 2
action_move_up = 3
action_move_down = 4
action_select = 7
action_back = 9
action_menu = 10
action_skip_next = 5 #left trigger
action_skip_previous = 6 #right trigger
action_display = 18
def downloadimage(url):
rawfilename = cache_dir + path.basename(url)
filename = path.abspath(rawfilename)
if (path.exists(filename)):
return rawfilename
else:
try:
urllib.urlretrieve(url, filename)
return rawfilename
except:
onmessage("could not retrieve image from", url)
return none
def timer_elapsed():
return none
def downloadplaylist(url):
dialog = xbmcgui.dialogprogress()
dialog.create("kml browser", "downloading playlist...", "please wait.")
filename = playlist_file
if not dialog.iscanceled():
if (path.exists(filename)):
unlink(filename)
try:
urllib.urlretrieve(url, filename)
dialog.close()
return filename
except:
dialog.close()
onmessage("could not retrieve playlist from", url)
return none
else:
return none
def downloadxmldocument(url=none):
dialog = xbmcgui.dialogprogress()
if url is none:
url = "http://194.192.15.21/webradio2/kml/index.php?reload=true"
try:
dialog.create("kml browser", "downloading kml document...", "please wait.")
data = urllib.urlopen(url)
kml = data.read()
data.close()
kml = xml.dom.minidom.parsestring(kml)
dialog.close()
return kml
except:
dialog.close()
onmessage("failed to download xml document:", url)
return none
def onmessage(m1="", m2="", m3=""):
dialog = xbmcgui.dialogprogress()
dialog.create("kml browser", m1, m2, m3)
time.sleep(1)
if dialog.iscanceled():
w.domodal()
w.close()
del w
return
dialog.close()
return
def getfont(font):
if (font == 1):
return "font18"
else:
return "font14"
def getcolor(pen):
colstring = "33333300161b58ff8080804080808080808080bf161b58401 61b5866161b58bff9a23940f9a23980f9a239b
ffd1f1ffffd401ffffd6d1ffffda01ffffdcb1fff000000ff1 11111ff222222ff333333ff444444ff555555ff6
66666ff777777ff888888ff999999ffaaaaaaffbbbbbbffccc cccffddddddffeeeeeeffffffffff161b5866222
761743f43768861658fa08185a6b8a6a8bfd3c6c8d7eaebecf 1fe1d1df9ff1d27f9ff1d39f9ff1d50f9ff1d6ef
9ff1d8df9ff1da7f9ff1dbbf9ff161b586623255474403c488 863583ba086742eb8a78d21d3caa914eae9c209f
e060100ff290800ff4b0f00ff6d1600ff8f1d00ffb22400ffd 42a00fff73100ff0000ffffff0000ffff00ffff0
0ff00ff00ffffffffff00ff0099ffffff9900ffff0099ffecb e9bffc3cedcffa5e480ff95b0ceffec986fffecc
e6affb385aeff4141ddffdd4141ffdd41dcff41dd41ff41dcd dffdcdd41ff419eddffdd9e41ffdd419effd6b9a
4ffbec4cdffa9d092ff9fb0c2ffd4a088ffd4c185ffb095adf f9292fafffa9292fffa92f9ff92fa92ff92f9faf
ff9fa92ff92d0fafffad092fffa92d0fff5e2d4ffe5e9efffd 7f1c8ffd0dce8fff4d1c1fff4e7bfffdcc9daff4
d4df6fff64d4dfff64df5ff4df64dff4df5f6fff5f64dff4db 2f6fff6b24dfff64db2ffeecfb8ffd4dbe4ffbde
7a5ffb3c5d9ffecb499ffecd896ffc5a7c2ff2222e5ffe5222 2ffe522e4ff22e522ff22e4e5ffe4e522ff2296e
5ffe59622ffe52296ffdbb89dffbdc6d0ffa3d487ff97acc3f fd9997affd9c276ffac8aa9ff1919a8ffa81919f
fa819a7ff19a819ff19a7a8ffa7a819ff196ea8ffa86e19ffa 8196effa08773ff8a9198ff779b63ff6f7e8fff9
f7059ff9f8e56ff7e657cff10106fff6f1010ff6f106eff106 f10ff106e6fff6e6f10ff10496fff6f4910ff6f1
049ff6b594dff5c6065ff4f6742ff49545fff6a4a3bff6a5e3 9ff544352ff0b0b48ff480b0bff480b48ff0b480
bff0b4848ff48480bff0b2f48ff482f0bff480b2fff453a32f f3c3f42ff34432bff2f373eff453026ff453d25f
f372c36ff080834ff340808ff340833ff083408ff083334ff3 33408ff082234ff342208ff340822ff322a24ff2
b2d2fff25301eff22272cff31231cff312c1bff271f26ff1b1 bb780b71b1b80b71bb6801bb71b801bb6b780b6b
71b801b78b780b7781b80b71b7880af937e80979ea68082a96 c80798a9c80ae7a6180ae9b5e808a6e878029624
1ff5a1b7dffe98509ff2eb86fff1b4198ffdc471effc647abf f6a47abff4f7ad6ffd6955fff8095aeff80c3aef
f4c7292ffb34441ffb3ff00fff78264ff64391effedc40540e dc40580edc405bfedc405ffffffff40ffffff80f
fffffbf000000bf000000800000004000000066000000fff9a 239ff0000008fffffffff"
value = int(pen)
color = "0x" + colstring[(value * 8 + 6):(value * 8 + 8)] + colstring[(value * 8):(value * 8 + 6)]
return color
def gettext(el):
for node in el.childnodes:
return node.nodevalue
def innertext(el):
for node in el.childnodes:
return node.data
def getx(coords):
c = string.split(coords, ",")
x = xscale * int(c[0])
return int(x)
def gety(coords):
c = string.split(coords, ",")
y = yscale * int(c[1])
return int(y)
def getwidth(img, noscale=none):
img = path.abspath(img)
im = image.open(img)
x,y = im.size
if (noscale == none):
x = xscale * x
return int(x)
else:
return int(x)
def getheight(img, noscale=none):
img = path.abspath(img)
im = image.open(img)
x,y = im.size
if (noscale == none):
y = yscale * y
return int(y)
else:
return int(y)
def getendpoint(coords):
c = string.split(coords, ",")
return int(c[2]), int(c[3])
def getmp3title():
try:
pls = xbmc.playlist(0)
item = pls.(0)
title = item.getdescription()
return title
except:
return " "
def playmedia(url):
try:
pls = xbmc.playlist(0)
pls.clear()
pls.load(downloadplaylist(url))
player = xbmc.player()
player.play(pls)
except:
return none
class kmlbrowser(xbmcgui.window):
def (self):
self.control = ""
def additem(self, control):
menuitemlist.append(control)
self.addcontrol(control)
def previousmenu(self):
global activemenu
if len(menu) > 0:
if activemenu >= 0:
self.executecode(menu[activemenu]['hide'], self)
activemenu -= 1
if activemenu < 0: activemenu = len(menu) - 1
if activemenu >= 0:
self.executecode(menu[activemenu]['show'], self)
def nextmenu(self):
global activemenu
if len(menu) > 0:
if activemenu >= 0:
self.executecode(menu[activemenu]['hide'], self)
activemenu += 1
if activemenu >= len(menu): activemenu = 0
if activemenu >= 0:
self.executecode(menu[activemenu]['show'], self)
def process(self, kmldoc=none):
global activemenu, menu, menuitemlist, keyactions, preloadedimages
if (kmldoc is none):
onmessage("kml document is nothing", "return home")
self.process(downloadxmldocument())
return
self.clean()
activemenu = -1
menuitemlist = []
menu = []
keyactions = {}
preloadedimages = {}
for node in kmldoc.documentelement.childnodes:
if (node.nodetype == node.element_node):
self.proceselement(node, self)
for i in range(len(menu)):
self.executecode(menu[i]['hide'], self)
self.nextmenu()
def proceselement(self, el, box):
try:
if (el.nodename == "background"):
global xscale, yscale
bg = downloadimage(el.getattribute("href"))
xscale = float(xwidth) / float(xwidth)
yscale = float(xheight) / float(xheight)
box.addcontrol(xbmcgui.controlimage(0, 0, xwidth, xheight, bg))
elif (el.nodename == "image"):
img = preloadedimages[el.getattribute("id")]
print str(img)
if img == cache_dir+'pbutton1.gif' or img == cache_dir+'pbutton2.gif':
box.additem(xbmcgui.controlimage(getx(el.getattrib ute("coords")), gety(el.getattribute("coords")), 298,46, img, '0x00ff0000'))
elif img == cache_dir+'bar-7.gif' or img == cache_dir+'bar-3.gif' or img == cache_dir+'bar-8.gif':
box.additem(xbmcgui.controlimage(getx(el.getattrib ute("coords")), gety(el.getattribute("coords")), 720, 25, img, '0x00ff0000'))
elif img == cache_dir+'leftbar-0.gif' or img == cache_dir+'leftbar-1.gif':
box.additem(xbmcgui.controlimage(getx(el.getattrib ute("coords")), gety(el.getattribute("coords")), 300,43, img, '0x00ff0000'))
elif img == cache_dir+'commandbar1.gif':
box.additem(xbmcgui.controlimage(getx(el.getattrib ute("coords")), gety(el.getattribute("coords")), 552,15, img, '0x00ff0000'))
elif (el.nodename == "text"):
text = gettext(el)
if text == " $$mp3_title$$ ":
self.control = xbmcgui.controlfadelabel(getx(el.getattribute("coo rds")), gety(el.getattribute("coords")), 480, 40, getfont(el.getattribute("font")), getcolor(el.getattribute("pen")))
self.additem(self.control)
self.control.addlabel(getmp3title())
return
elif text == "c o n n e c t i n g . . .":
return
else:
self.additem(xbmcgui.controllabel(getx(el.getattri bute("coords")), gety(el.getattribute("coords")), 200, 30, text, getfont(el.getattribute("font")), getcolor(el.getattribute("pen"))))
elif (el.nodename == "menuitem"):
self.makemenuitem(el, box)
elif (el.nodename == "onmetadata"):
self.executecode(innertext(el), self)
elif (el.nodename == "loadimage"):
preloadedimages[el.getattribute("id")] = downloadimage(el.getattribute("href"))
elif (el.nodename == "goto"):
url = el.getattribute("href")
self.process(downloadxmldocument(url))
elif (el.nodename == "key"):
keyactions[el.getattribute("id")] = innertext(el.firstchild)
elif (el.nodename == "playmedia"):
try:
playmedia(el.getattribute("href"))
self.control.reset()
self.control.addlabel(getmp3title())
except:
onmessage("could not start stream:", el.getattribute("href"))
except:
print 'geminiserver: could not parse node...;) what node... hehe'
return 0
def makemenuitem(self, menuitemel, box):
itm = {}
itm['id'] = menuitemel.getattribute('id')
for el in menuitemel.childnodes:
if (el.nodename == "onclick"):
itm['click'] = innertext(el)
elif (el.nodename == "onhilite"):
itm['show'] = innertext(el)
elif (el.nodename == "onunhilite"):
itm['hide'] = innertext(el)
elif (el.nodename == "onleft"):
itm['left'] = innertext(el)
elif (el.nodename == "onright"):
itm['right'] = innertext(el)
elif (el.nodename == "onup"):
itm['up'] = innertext(el)
elif (el.nodename == "ondown"):
itm['down'] = innertext(el)
menu.append(itm)
def executecode(self, innerxml, box):
try:
doc = xml.dom.minidom.parsestring("<root>" + innerxml + "</root>")
for el in doc.documentelement.childnodes:
self.proceselement(el, box)
except:
onmessage("failed to execute code.", "return home")
self.process(downloadxmldocument())
def clean(self):
for i in range(len(menuitemlist)):
self.removecontrol(menuitemlist[i])
def onaction(self, action):
if action == action_move_up:
if len(menu) > 0:
if (menu[activemenu].has_key('up')):
self.executecode(menu[activemenu]['up'], self)
self.previousmenu()
elif action == action_move_down:
if len(menu) > 0:
if (menu[activemenu].has_key('down')):
self.executecode(menu[activemenu]['down'], self)
self.nextmenu()
elif action == action_select:
if activemenu >= 0:
if (menu[activemenu].has_key('click')):
doc = xml.dom.minidom.parsestring("<root>" + menu[activemenu]['click'] + "</root>")
for node in doc.documentelement.childnodes:
if node.nodename == "goto":
self.process(downloadxmldocument(node.getattribute ("href")))
elif action == action_back:
if (keyactions.has_key('93')):
self.executecode(keyactions['93'], self)
elif action == action_move_right:
if (keyactions.has_key('16388')):
self.executecode(keyactions['16388'], self)
elif action == action_move_left:
if (keyactions.has_key('16389')):
self.executecode(keyactions['16389'], self)
elif action == action_menu:
self.clean()
self.close()
w = kmlbrowser()
w.process(downloadxmldocument())
w.domodal()
del w
hi,
i fixed indentation and imho (no offence) there have been two syntax errors. (see details in script).
anyway, now it's running on my box.
download (http://people.freenet.de/endgegner/simplekml.py)
thanx and regards
zoid
hi,
i fixed indentation and imho (no offence) there have been two syntax errors. (see details in script).
anyway, now it's running on my box.
download (http://people.freenet.de/endgegner/simplekml.py)
thanx and regards
zoid
thanks zoid. that script works for me.
the only problem i now have is that the image does not fill the whole screen. it only fills the top left quarter of it (i'm using 720p).
i had a similar problem with the aqtbrowser but kraqh3d modified the script to scale itself to any screen resolution.
is someone able to do this with zoid's script?
zilvershadow's original simplekml was already screen resolution aware and scaled itself accordingly. you may have updated an older version.
hi all!
just wanted to point one thing out. it's very important to tell your ftpapp not(!) not change the casing of files when uploading. for some godforsaken reason mine did and the script couldn't find the files it was looking for. so check your settings and reupload python dir and script related files and cross your fingers. ;)
edit ::
almost forgot, big big thanks for this lovely script!
iafilius
2004-09-20, 20:47
hi,
i noticed the numeric keys seem not to work on the remote.
is this not implemented, or perhaps i'm missing something?
i'd like the sortorder functions with the numeric keys on the remote!
i'd just started implementing changing sort orders (popularity/stream speed/etc etc) with my onlinestreams, and i'd like to do it the way kiss does it (same keys).
if it won't gonna work, i'd have to use my own fantasy for that :)
greetings,
arjan
iafilius
2004-09-25, 12:17
hi,
i noticed the numeric keys seem not to work on the remote.
is this not implemented, or perhaps i'm missing something?
i'd like the sortorder functions with the numeric keys on the remote!
i'd just started implementing changing sort orders (popularity/stream speed/etc etc) with my onlinestreams, and i'd like to do it the way kiss does it (same keys).
if it won't gonna work, i'd have to use my own fantasy for that :)
greetings,
arjan
hi,
i just implemented working numeric keys to actually work (on the remote)
you can get a modiefied version on:
http://www.onlinestreams.nl/software/simplekml-keys.py
note that this version has also included the (faked) playerid which is default xxxxxxxxxxxx.
i'm working on let those keys actially do something at my onlinestreams kml site. (changing stream sort order for example)
zilvershadow, perhaps you'd like to include those changes into your official version?
thanks in advance,
arjan
iafilius
2004-09-25, 18:59
any idea how to disable or modify the http user-agent http header?
thanks in advance.
arjan
iafilius
2004-09-25, 20:24
the main other kml sites do http header/user-agent checking.
it seems better send no user-agent at all.
does anyone take the challenge?
greetings,
add this just below the global variables, and above the first def. *it'll change the urllib user-agent to be "kiss/dp500" which is what i found they actually use.
class kissurlopener(urllib.fancyurlopener):
[tab]def [underscore][underscore]init[underscore][underscore](self, *args):
[tab][tab]self.version = "kiss/dp500"
[tab][tab]urllib.fancyurlopener.[underscore][underscore]init[underscore][underscore](self, *args)
urllib._urlopener = kissurlopener();
** edit.. hmm the code got mangled, i hope u can understand this
iafilius
2004-09-26, 21:44
add this just below the global variables, and above the first def. it'll change the urllib user-agent to be "kiss/dp500" which is what i found they actually use.
class kissurlopener(urllib.fancyurlopener):
[tab]def [underscore][underscore]init[underscore][underscore](self, *args):
[tab][tab]self.version = "kiss/dp500"
[tab][tab]urllib.fancyurlopener.[underscore][underscore]init[underscore][underscore](self, *args)
urllib._urlopener = kissurlopener();
** edit.. hmm the code got mangled, i hope u can understand this
are you realy sure about that "kiss/dp500" part?
most of the time i see just "-" in my apache logfiles.
since your post i se the first "kiss/dp500" coming.
not before.
greetings,
arjan
that info was from a google search. *someone on an icecast forum said that he started seeing user-agent "kiss/dp500" in his logs. *regardless, you can use that code can be used to change the user-agent to anything you want. *
got it... i wrote my own remove_header :)
just replace the "tabs" and "_" in the code. *it'll completely remove the user-agent http header from the request.
i verified it works with ethereal
class kissurlopener(urllib.fancyurlopener):
[tab]def [_][_]init[_][_](self, *args):
[tab][tab]apply(urllib.fancyurlopener.[_][_]init[_ ][_], (self,) + args)
[tab][tab]self.remove_header ('user-agent')
[tab]def remove_header(self, header):
[tab][tab]for i in range (len (self.addheaders)):
[tab][tab]if self.addheaders[i][0] == header:
[tab][tab][tab]del self.addheaders[i]
[tab][tab][tab]return 1
[tab][tab]return 0
urllib._urlopener = kissurlopener();
zilvershadow
2004-09-27, 18:53
i need to have support for rectangles and lines in python. who is willing to code that?
sorry... i'd love to help but thats above me. i think darkie would have to add methods to the xbmc specific stuff which wrap the directx drawing primitives.
tho you might be able to fake it out by making a gif thats a line, and one thats a square. make sure the inside space on the square is transparent.
you could then use the xbmc.controlimage to place these images on the screen where you need them... downsides would be that the line, itself, would get scaled in thickness, and you would need to make images for each color if you need multiple colors.
zilvershadow
2004-09-28, 23:40
sorry... i'd love to help but thats above me. *i think darkie would have to add methods to the xbmc specific stuff which wrap the directx drawing primitives.
tho you might be able to fake it out by making a gif thats a line, and one thats a square. make sure the inside space on the square is transparent.
you could then use the xbmc.controlimage to place these images on the screen where you need them... downsides would be that the line, itself, would get scaled in thickness, and you would need to make images for each color if you need multiple colors.
i already thought about that and it's a great idea allthough i do not want to invest to much time in making graphics which do not work with multiple colors etc. i'm not certain if this is a good idea. if someone else wants to invest in the script please do so.
greats,
zs
:help:
i have tried 5 diffrent klm browser from v.011 an downwards nothing works i only get these too error message:
http://www.kremen.no/photo/screenshot002.jpg
http://www.kremen.no/photo/screenshot003.jpg
i use xbmc xbox media center 2004-10-01 [y]
and for skin project_mayhem_2004-09-20
rss feed,weather and xbox tv works perfectly but not aqtbrowser
]
iafilius
2004-10-06, 09:02
yesterday the webradio2 site from kiss was down.
i noticed the same.
i didn't check the site doday _yet_.
greetings,
iafilius
2004-10-06, 09:05
ps, how did you make the screenshot.
i'd get only a black image when i try to do so.
greetings,
i just pushed down left thumbstick. nothing fancy.. :)
which is the best to use?
simplekml.py
or
kmlbrowse.py
???
ChEeSyBoOfS
2004-10-08, 00:16
has anyone been able to fix this yet?
i don't believe it is broken. the site was down for some time and i think that's what the problem was. mine works and i did not change anything, i am running the version that is given in the first post in this thread. what had me confused was that aqtbrowser (movie trailer script) broke at around the same time, but that was due to a change made at the apple web site and the scritpt had to actually be changed to get it working again. this is not the case for web radio script, like i said mine works and i did not change anything.
ChEeSyBoOfS
2004-10-08, 21:24
mine too packed up at the same time, i have since fixed aqtbrowser but my web radio won't work, i have copied back the simplekml.py but still no joy. python is working so i just don't get it. nothing in xbmc log either
TattooedBear
2004-10-08, 23:39
ok. this thing looks great. this is my first attempt at playing with the python scripts.
i've download several of them and put their directories into the xbmc subdirectory of scripts.
such as:
f:\apps\xbmc\scripts\kml2browser\files within the rar
i'm using the newest (xbmc) 2004-10-06 cvs build
and the default pmayhem skin.
starting from the main menu i go right on my remote to the button that brings up the lil' menu with the scripts option.
i press that, it brings up the subfolders of the scripts in the scripts folder
i hilite the .py files and it just comes up quickly saying (running)
when i hit the info button on my remote, it tells me <on this particular script>
http://www.theredtriad.net/scripts/scripterror.jpg
my weather comes up, i can run around my harddrive in workgroups, the news feeds work fine. under settings/internet protocol i have automatic dchp.
no scripts work for me. they all come up with similiar errors.
sorry if i'm a retard. *shrug* i just don't see what i'm doing wrong and have been readin' all day. this thread/forum seems to be full of nice enough people that could help.
___david
did you add python support?
TattooedBear
2004-10-08, 23:51
and what comes in (xbmc) 2004-10-06 cvs build
does not contain any python support. this is something i have to add outside of this eh?
so you're saying "did you know you have to add python support as it doesn't come with xbmc?" :-)
then no. i did not know that i needed to add python support other than putting the scripts in the scripts subfolder.
so how do i add python support?
[currently downloading scripts.and.python.rar] found while looking over the xbmc f.a.q.
<<edit #2>>
working... thank you ;-)
*shrug*
:-)
:fixed:
ChEeSyBoOfS
2004-10-09, 15:30
mine still is not fixed.
i have turned debug on and i get this;
05-12-8907 18:49:33 info -->python initialized<--
05-12-8907 18:49:33 info
05-12-8907 18:49:33 info traceback (most recent call last):
05-12-8907 18:49:33 info file "q:\scripts\simplekml.py", line 23, in ?
05-12-8907 18:49:33 info
05-12-8907 18:49:33 info import xbmc, xbmcgui, image
05-12-8907 18:49:33 info systemerror
05-12-8907 18:49:33 info :
05-12-8907 18:49:33 info null result without error in pyobject_call
05-12-8907 18:49:33 info
i have not changed a thing and since webradio and aqtbrowser went down i have only been able to fix aqtbrowser.
can anyone help, this is what i use my xbox for and have not been able to use it for over a week!!!!!!
hi! have you changed 25px error i your python script?
open aqtbrowser in notepad and change the on and only place it says 25px till 20px
# get all exclusive trailers
def parseexclusive(htmlpage):
m = re.search('(<h3>trailers exclusive:</h3>\s)(.*)(\s\s\s\s<div class="clearer" style="padding-bottom: 20px;"> </div>)', htmlpage, re.dotall)
sorry! didnt meant error, but a change that apple made at their site! this change , means that u have to make a change in the script! f*** iam drunk! have an nice saturday nigth people..
i have not changed a thing and since webradio and aqtbrowser went down i have only been able to fix aqtbrowser.
can anyone help, this is what i use my xbox for and have not been able to use it for over a week!!!!!!
cheesyboofs,
i know you said you didn't change anything, and ofcourse i could be wrong, but based on the error in your log file i would suggest you have a look at the python directory and make sure all the necessary files/libraries etc are there. perhaps something has happened to your python files, you could just try reinstalling them, it might get you working again. just a suggestion, it can't hurt. (i know movie trailer script is working for you, but the web radio script imports some libararies that the movie trailer doesn't).
ChEeSyBoOfS
2004-10-10, 14:31
your quite correct in suspecting corruption as did i. so i have already tried putting the python directory back, and the scrips folder, as these dont come with the cvs build of xbmc when i tried a rebuild.
i have two xbox's doing the same thing both with 'my' build and the cvs build. both builds work perfect except the web radio.
can any one tell me what the error log says the problem is?
ChEeSyBoOfS
2004-10-11, 22:50
right i've now tried the cvs build, my own and ythan's on two xboxes and the dam web radio will not work can some one run my quick build from the tut section and tell me if it works on their xbox, i'm going mad here.
it looks like i may have been baned in some way from the kiss server maybe, as all the other scripts work, i didn't touch ythan's build and even that don't work.
i've even tried renewing the lease on my modem but i keep getting the same ip back, has anyone else been baned?
http://homepage.ntlworld.com/cheesyboofs/screenshot000.jpg
iafilius
2004-10-11, 23:02
can you visit there webradio2 website?
does _my_ version work used for my onlinestreams posted elsewhere?
until now i'm not banned, but i won't realy be surprised it wil happen some time.
greetings,
arjan
ChEeSyBoOfS
2004-10-11, 23:28
no your script dont work either, they both fall over after/at 'import xbmc, xbmcgui, image' or at 'import urllib' *:bomb:
:fixed: :veryangry: :nuts:
copied over the python dir from xbmc xbox media center 2004-08-20 [y] ?? anyone had problems my quick-build or ythan's both including python?
zilvershadow
2004-10-12, 21:35
download this one: http://home.quicknet.nl/qn/prive/sg.homs/kmlbrowser.rar
and extract the files
ChEeSyBoOfS
2004-10-14, 22:46
i'm sorry but this is realy pissing me off. i hate things that don't make sence.
on xbox 1 i couldn't get web radio working everything else worked fine. so i just copied over python about three times and it started working?
i have now copied all of the c: drive to xbox 2 and webradio doesn't work again on xbox 2, it still works on xbox 1, what the f'ks going on, this must be a bug some where, both xbox's are identical apart from the ip address ???????
i'm pissed because untill about 16-09-2004 i never had any trouble.
i am using the download above.
is there a way to get the bitrate shown in all filenames for all the radiostations?
i'm sorry but this is realy pissing me off. i hate things that don't make sence.
on xbox 1 i couldn't get web radi