Kodi Community Forum
WIP [NOOB] Unobtrusive, directed advertising script - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: WIP [NOOB] Unobtrusive, directed advertising script (/showthread.php?tid=189252)



[NOOB] Unobtrusive, directed advertising script - johnnyGoode17 - 2014-03-15

This is my first foray into XBMC development, and I hope this community is welcoming because I would like to work on it in the future.
I'm attempting to write what I expect to be a simple enough script. I want the ticker to display advertising for TV Shows that are in the user's library. I plan on getting the advertising from Amazon's affiliate program's API at some interval. Right now I just have a basic "Hello World" notification that I managed to scavenge off of another addon's file structure.

From my research, I've learned that I need to use JSON-RPC to access the user library. What should I be importing? I'm currently importing xbmc.python and xbmc.json.

Is there a way to display through the ticker instead of the RSS Feed? Or would it just be simpler to change the RSS Feed?

Thank you.