Kodi Community Forum
problem with <episodeguide> - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Scrapers (https://forum.kodi.tv/forumdisplay.php?fid=60)
+--- Thread: problem with <episodeguide> (/showthread.php?tid=158130)



problem with <episodeguide> - meathook2 - 2013-03-03

I call a URL FUNCTION named "GetEps" from GetEpisodeList to get "<episode>...</episode> <episode>...</episode><episode>...</episode>"
I wrapped the function call with <episodeguide><url function="geteps">http://www.sratim.co.il.../.../</url><episodeguide> (with html encoding of course)

I see in xbmc.log that I get output:
<episode>
....
</episode>

but without the <episodeguide>...</episodeguide> around it.

Do I have to put <episodeguide> inside the function output?


RE: problem with <episodeguide> - scudlee - 2013-03-03

Short answer: It needs to be in both places.

Slightly longer answer: The output of the custom function isn't inserted in situ, but rather added on afterwards. So GetEpisodeList needs to return an <episodeguide>...</episodeguide> block, and if it calls any functions, they too need to return an <episodeguide>...</episodeguide> block (and so on and so forth). All the individual <episodes>s in each block will then be joined together in the order that the functions were processed.

It's the same deal with GetDetails and <details>...</details>, or GetSearchResults and <results>...</results>.


RE: problem with <episodeguide> - meathook2 - 2013-03-03

Thanks!