2010-06-20, 22:56
Guys,
I'm not sure what I'm doing wrong - but it's not working.
I've a [general-purpose] script to convert a iTunes created playlist file (.m3u) into a general purpose playlist, which XBMC can read/understand and I wanted to run that script every times XBMC starts. The script simple reads the file from a given location (i.e. where I import the playlist from iTunes), converts and then put that in the /home/xbmc/.xbmc/userdata/playlists/music location - very simple, nothing fancy. If I run the script by hand, it works perfectly well but if I try to run though autoexec.py (in /home/xbmc/.xbmc/scripts) nothing happens. This is what I have for my autoexec.py file:Is there anything wrong with that? Does anyone know why it's not working? I checked the log, there is no ERROR that. Any help/tip greatly appreciated. Cheers!!
I'm not sure what I'm doing wrong - but it's not working.
I've a [general-purpose] script to convert a iTunes created playlist file (.m3u) into a general purpose playlist, which XBMC can read/understand and I wanted to run that script every times XBMC starts. The script simple reads the file from a given location (i.e. where I import the playlist from iTunes), converts and then put that in the /home/xbmc/.xbmc/userdata/playlists/music location - very simple, nothing fancy. If I run the script by hand, it works perfectly well but if I try to run though autoexec.py (in /home/xbmc/.xbmc/scripts) nothing happens. This is what I have for my autoexec.py file:
Code:
## auto execute scripts when xbmc starts
## note:- use only one script at a time which asks for user input!
import os, xbmc
# create playlists from iTunes playlist file
xbmc.executescript(os.environ['HOME'] + '/automate/mk_plst.py')