Kodi Community Forum
XBMC WebUI Config(GetBookmark)? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+--- Thread: XBMC WebUI Config(GetBookmark)? (/showthread.php?tid=68058)



XBMC WebUI Config(GetBookmark)? - samdret - 2010-01-21

[Windows] - Sorry, posted in wrong forum and forgot to add OS tag

Hey,

I'm trying to utilize this:
PHP Code:
<?php
$XBMCReturnVar 
trim(strip_tags(file_get_contents($XBMCURI.'xbmcCmds/xbmcHttp?command=Config(getbookmark;videos;path;1)')));
?>

however, all I get is:
Code:
Error:WebServer needs to be running - is it?

yet I can still use other functions, such as ExecBuiltIn (UpdateLibrary, CleanLibrary etc), GetSystemInfo and TakeScreenshot. I'm trying to add the ability to alter a sources multipath via my custom control panel. Any help would be appreciated Smile


- samdret - 2010-01-22

I would also like to add that
PHP Code:
file_get_contents($XBMCURI.'xbmcCmds/xbmcHttp?command=WebServerStatus()'); 
returns "On". If I use the original WebUI (default.asp), there are no problems. I even tried to remove password protection on the WebServer, but nothing helps.

Also tried altering my original Config command to
PHP Code:
$XBMCURI.'xbmcCmds/xbmcHttp?command=config&parameter=getbookmark;music;name;1)' 
No dice. However, if I send an invalid parameter and/or command, WebServer tells me that there is no such command/parameter. This is driving me nuts! xbmc.log doesn't show anything related to WebServer, apparently.


- samdret - 2010-01-23

I'll just edit sources.xml directly. But you might want to look into this as a bug(?)


- topfs2 - 2010-01-23

httpapi will be replaced by jsonrpc so its unlikely we'll fix any bugs in httpapi area.

Cheers,
Tobias