Addon development help
#1
This is the first time I am working on developing an addon for XBMC. The addon I am developing is a program plugin which goes through the thumbnail directory and remove "unnecessary" thumbnails. This was inspired by a similar addon that Dan Dar3 had written for the original xbox.

Code:
DEBUG:  WaitOnScriptResult - plugin exited prematurely - terminating
ERROR: GetDirectory - Error getting plugin://plugin.program.thumbnail.cleaner
ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.program.thumbnail.cleaner) failed

I have the addon working except for some of the above warning/errors. I was wondering what I am doing wrong which causes this and what needs to be done so that these warning/errors are not present.

The code for the entire addon can be found here https://github.com/bharath23/xbmc_plugin...il.cleaner
Reply
#2
a plugin always has to call xbmc.endOfDirectory(handle) at the end. that's the source of those errors.
Reply
#3
Thanks for this information, I will make the modifications later when I am at home test it. Is there any document which documents all these requirements. I have been using the documents available in the wiki.
Reply
#4
tbh i dont know, likely not. monkey see monkey do, have a look at another addon..
Reply
#5
Copy/paste, trial and error and google

It has got me pretty damn far the last month. From knowing absolutely nothing about python and now able to understand what is happening and solving problems and actually contribute some coding Smile
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#6
To be honest this something which is really needed, to be able to document the API. XBMC is truly a platform at this stage. There is this post that I came across earlier which emphasizes the need for a well documented platform API https://plus.google.com/1126787022287118...VeouesvaVX
Reply
#7
After doing some more research I feel that this addon would be better if it was script than a plugin. I modified it to reflect the same. The source can be found here:

https://github.com/bharath23/xbmc_addons...il.cleaner

Currently the script cleans special://thumbnails/Video folder. I am also thinking if I could clean special://thumbnails as well. I guess mostly scripts and plugins add their thumbnails there. I was wondering if there was a way I could iterate the thumbnails that are in use by some database lookup. Any hints on this would be greatly appreciated.
Reply
#8
I am thinking of developing an addon for the videos available here in http://www.bcci.tv and also support the live stream when available here http://www.bcci.tv/bcci/bccitv/community...livestream

I was wondering if there is any addon that I can use for reference to look into for me to develop this addon.
Reply

Logout Mark Read Team Forum Stats Members Help
Addon development help0