Hi, I need some help
#1
hello,

i am neewbe with python, although i have programmed before in other languages.
i'm trying to program an script that reads a file from smb. i have read the posts here, but i don't find the right solution. i have done this:

#############################
class myclass(xbmcgui.window):
def (self):
titol = ''
imatge = ''
path = 'smb://xarxa;xbox:xbox@athlon/dvdrom'
config_file = path + '/config.xml'
imatge = '/media/wallpaper.jpg'
file = open(config_file)
self.addcontrol(xbmcgui.controlimage(0,0,800,600, path + imatge))
....
#############################
i got 2 problems here:
1st: at line "file = open(config_file)" i get the error that config_file is not a valid file Sad. how can i acces to this file to be readed?
2nd: if i comment out the line before, i don't see the image and i can acces to it by files -> dvdrom (via smb). why i can't see the image when running my script?

thank you in advance,
gonella
Reply
#2
you can't acces smb share with python. files from dvd and hd do work, but remote files won't.
same goes for the image.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#3
but i can play a film with this format:

###############
file = 'smb://xarxa;xbox:xbox@athlon/films/the_ring.avi'
xbmc.player().play(file)
###############

do i need to copy the files to the hd of the xbox? how can i do that?

i have read the kml script, and its a little dificult for me. is there another script easier?

thanks and excuse my english
Reply
#4
at a guess, i'd say you need a smb library
Reply

Logout Mark Read Team Forum Stats Members Help
Hi, I need some help0