2010-02-07, 05:06
Hi,
Im using:
RunScript(special://home/scripts/YouTrailer/default.py,"$INFO[listitem.filename]","$INFO[listitem.path]")
to send the path of currently selected movie to my script.
I then query the xbmc db "path" table for this path.
works fine on PC when the movies path is SMB://gfdgg/ghgfh/
but, if i try with local movies "C:\blah blah\"
the path gets sent without the trailing "\"
so query on db won't wind path
This will be due to "$INFO[listitem.path]".
It will translate to "C:\blah blah\"
so, it will be taking the end " as literal
Any way to run a replace command in a xbmc skin file eg:
"$INFO[listitem.path].replace('\\','\\\\')"
??
Any help would be greatly apreciated!
Im using:
RunScript(special://home/scripts/YouTrailer/default.py,"$INFO[listitem.filename]","$INFO[listitem.path]")
to send the path of currently selected movie to my script.
I then query the xbmc db "path" table for this path.
works fine on PC when the movies path is SMB://gfdgg/ghgfh/
but, if i try with local movies "C:\blah blah\"
the path gets sent without the trailing "\"
so query on db won't wind path
This will be due to "$INFO[listitem.path]".
It will translate to "C:\blah blah\"
so, it will be taking the end " as literal
Any way to run a replace command in a xbmc skin file eg:
"$INFO[listitem.path].replace('\\','\\\\')"
??
Any help would be greatly apreciated!