[ALL] WebServer, getcurrentlyplaying and New structure?
#1
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
<li> Show title: The pasific.
....
This is neat for visual side, but It's hard work to parse and extract spesific data.

Suggestion:
Can the output be like adding div tags like:

Code:
<div id="episode">1</div>
<div id="Show Title">The Pasific</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;
thank you.
Reply
#2
err, totally ignorant comment here I am sure, but shouldn't it be returning XML rather than html??

so

<episode>My Title</episode>
...etc?
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | XSqueezeDisplay | (Legacy - XSqueeze & XZen)
Sorry, no help w/out a *full debug log*.
Reply
#3
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.
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
#4
bossanova808 Wrote:<episode>My Title</episode>
...etc?

even better! Smile
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... ?
Reply

Logout Mark Read Team Forum Stats Members Help
[ALL] WebServer, getcurrentlyplaying and New structure?0