2009-05-10, 15:48
Anyone knows how to get the Configuration > Video > Subtitles > Custom subtitle directory from a Python script/plugin?
Thanks,
Dan
Thanks,
Dan
import xbmc
subtitlesCustomPath = xbmc.executehttpapi('GetGuiSetting(string;subtitles.custompath)').replace("<li>", "")
print subtitlesCustomPath
Quote:Not to mention that the webserver has to be enabled...Not when you make them inside python, that's why they aren't in their own class.
int CXbmcHttp::xbmcGUISetting(int numParas, CStdString paras[])
//parameter=type;name(;value)
//type=0->int, 1->bool, 2->float, 3->string
import xbmc
subtitlesCustomPath = xbmc.executehttpapi('GetGuiSetting(3;subtitles.custompath)').replace("<li>", "")
print subtitlesCustomPath