2004-01-04, 13:47
2004-01-04, 15:09
how do you autostart it?
xbmc.mediaplay("file.pls")
or
xbmc.mediaplay("[url]http://shoutcast"[/url]) ?
the last should work, the first shouldn't.
xbmc.mediaplay("file.pls")
or
xbmc.mediaplay("[url]http://shoutcast"[/url]) ?
the last should work, the first shouldn't.
2004-01-04, 22:36
nice, will try it later.
*****edited:
forget everything. it's almost working. the problem is something with the xfs i have to check later...
*****
btw, as you are the python guru... :-)
could you give me an example how to make directories and remove them. can i access the f: drive through python?
i wrote a shoutcast-pls-updater this afternoon, but can't get it to work on the xbox. works nice on winxp, but thats not what i want! :-)
i'm new to python, here the relevant functions:
...
shoutcast_dir = 'f:/music/radio/'
...
#got this one from somewhere here in the forum, but doesn't work on the box:
def clean_dir(dirname):
for root, dirs, files in os.walk(dirname):
for name in files:
os.remove(join(root, name))
#creates missing directories for the given path
def make_path(path):
dpath = normpath(dirname(path))
if not exists(dpath): makedirs(dpath)
return normpath(abspath(path))
# saves the content under the given path. (i.e. dir=f:/music/shoutcast/ filename=blabla.pls)
def save_file(dir, filename, content):
make_path(dir)
file = open(dir + filename, 'w')
file.writelines(content)
file.close
thanx a lot
n8
*****edited:
forget everything. it's almost working. the problem is something with the xfs i have to check later...
*****
btw, as you are the python guru... :-)
could you give me an example how to make directories and remove them. can i access the f: drive through python?
i wrote a shoutcast-pls-updater this afternoon, but can't get it to work on the xbox. works nice on winxp, but thats not what i want! :-)
i'm new to python, here the relevant functions:
...
shoutcast_dir = 'f:/music/radio/'
...
#got this one from somewhere here in the forum, but doesn't work on the box:
def clean_dir(dirname):
for root, dirs, files in os.walk(dirname):
for name in files:
os.remove(join(root, name))
#creates missing directories for the given path
def make_path(path):
dpath = normpath(dirname(path))
if not exists(dpath): makedirs(dpath)
return normpath(abspath(path))
# saves the content under the given path. (i.e. dir=f:/music/shoutcast/ filename=blabla.pls)
def save_file(dir, filename, content):
make_path(dir)
file = open(dir + filename, 'w')
file.writelines(content)
file.close
thanx a lot
n8
2004-01-05, 00:01
just a quick look
'/' is not supported in python for xbmc
use '\\' instead
shoutcast_dir = 'f:\\music\\radio'
'/' is not supported in python for xbmc
use '\\' instead
shoutcast_dir = 'f:\\music\\radio'
2004-01-05, 01:00
since this turns into python scripting i move it to the "development" forum.
2004-01-07, 22:13
k, i tried:
file = 'http://www.shoutcast.com/sbin/shoutcast-...ename.pls'
xbmc.mediaplay(file)
but its not working! :-(
file = 'http://www.shoutcast.com/sbin/shoutcast-...ename.pls'
xbmc.mediaplay(file)
but its not working! :-(
2004-01-08, 00:13
xbmc.mediaplay('http://addicted.puredj.com:8000') should work. i'll test it soon to see if it really does :-)
edit:
it does work, only http should be replaced by shout
xbmc.mediaplay('shout://addicted.puredj.com:8000')
edit:
it does work, only http should be replaced by shout
xbmc.mediaplay('shout://addicted.puredj.com:8000')
2004-01-08, 10:36
oh cool! finally i can autostart my preffered shoutcast station without having to turn on my projector! :-)
thnx
btw, the python stuff is great! i'm even thinking about doing a script wich would let you browse online the shoutcast stations and playing them. something like a "my radio" button in the root menu. but unfortunatly i don't have much time and not a lot of python experience.
thnx
btw, the python stuff is great! i'm even thinking about doing a script wich would let you browse online the shoutcast stations and playing them. something like a "my radio" button in the root menu. but unfortunatly i don't have much time and not a lot of python experience.
2004-01-08, 11:23
(nei @ jan. 08 2004,08:36 Wrote:oh cool! finally i can autostart my preffered shoutcast station without having to turn on my projector! :-)so you can use xbmc as a dashboard?
2004-01-08, 12:17
(febs @ jan. 08 2004,09:23 Wrote:so you can use xbmc as a dashboard?i think yes, if you copy all files to c-drive like other dashboards. remeber seeing that in some thread here earlier. and ofcourse edit default.xbe or your bios to the name you use to boot.
2004-01-08, 16:40
(febs @ jan. 08 2004,09:23 Wrote:so you can use xbmc as a dashboard?yes you can. if you know how to change your bios with xbtool you can change it to point to your xbmc folder eg. f:/apps/xbmc/default.xbe.
or you can copy the whole xbmc folder to your c drive and rename default.xbe to the name your bios is looking for,
2004-01-08, 17:17
or there is even another possibility:
http://forums.xbox-scene.com/index.p....shboard
i don't use any of them, but have xbmc as first entry in evox. so start box, press a and autostart whatever you want through python. :-) don't need a tv for this! ;-)
http://forums.xbox-scene.com/index.p....shboard
i don't use any of them, but have xbmc as first entry in evox. so start box, press a and autostart whatever you want through python. :-) don't need a tv for this! ;-)
2004-01-11, 03:53
her, thanx for infos about autorunning xbmc at startup.
too bad with this script
i get this error:
tnx
edit:
btw, the dns settings are correct.
too bad with this script
Quote:import xbmc
xbmc.mediaplay('shout://addicted.puredj.com:8000')
i get this error:
Quote:view as listit does not start (and the audio playing meanwhile skips by one )
cddb
sr_error_cant_resolve_hostname
tnx
edit:
btw, the dns settings are correct.
2004-01-16, 10:40
try with another address. it's working. i use it all the time. ;-)