[ALL] WebServer, getcurrentlyplaying and New structure? - 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: [ALL] WebServer, getcurrentlyplaying and New structure? (/showthread.php?tid=94974) |
[ALL] WebServer, getcurrentlyplaying and New structure? - realjobe - 2011-02-22 Hi there. Using Dharma 10.0 on Win7_x64 with Zbox ID40. Great Set! Currenty Xbmc's WebServer's query "getcurrentlyplaying" returns not so structured output like: Code: <li> epidsode: 1 Suggestion: Can the output be like adding div tags like: Code: <div id="episode">1</div> Then the data extracting would be MUCH easier for own purposes. PHP extract with http://simplehtmldom.sourceforge.net/ Code: $article->find('div[id=hello]', 0)->plaintext; - bossanova808 - 2011-02-22 err, totally ignorant comment here I am sure, but shouldn't it be returning XML rather than html?? so <episode>My Title</episode> ...etc? - Montellese - 2011-02-22 Assuming you are talking about the http-api (not clear as the webserver features a webinterface, http-api and json rpc api) that interface is deprecated (as stated many times) and will not be altered/fixed/extended anymore. It should be completely replaced by the new json rpc api in the near future. - realjobe - 2011-02-22 bossanova808 Wrote:<episode>My Title</episode> even better! Where BTW is the WebServer's pages & resources. In Xbox version they were root/webserver/default.asp .... I could not found any local resource for the WebServer... ? |