Kodi Community Forum

Full Version: Method to inhibit Kodi level error?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
My addon currently generates directory structures to provide end links to games. I'm interested in cleaning up the logfile and removing any unnecessary stuff my addon might be creating. This is the main error that I can see in logs, that isn't necessarily an error:
Code:
ERROR: GetDirectory - Error getting plugin://plugin.program.iarl/Emulator/xxxx
ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.program.iarl/Emulator/xxxx) failed
Where xxx is whatever item they selected from the Kodi GUI. I believe this error is being generated because Kodi is looking for that directory, and it's physically not there (its just a route within my addon).
This error doesn't effect functionality, everything works, but I'd prefer not to confuse things.

Is it possible to inhibit 'GetDirectory' / 'CGUIMediaWindow' errors somehow in python? Or is there some other way I can keep the routing within the addon but tell Kodi this is not a real directory so don't bother looking for it?

Thanks in advance!
do not mark shit as a directory if they are not directories. problem solved?

you can always quell those by making sure you actually call endOfDirectory. but really, if they do not provide another level of listing, they are not directories.
(2017-05-02, 16:45)ironic_monkey Wrote: [ -> ]do not mark shit as a directory if they are not directories. problem solved?

you can always quell those by making sure you actually call endOfDirectory. but really, if they do not provide another level of listing, they are not directories.

Thanks, I'll take a look at the endOfDirectory thing. I wasn't aware of that.
https://pastebin.com/bpxhykpg illustrates the normal, the bad and the good. the cluestick is the value of isFolder for the two items. it's all gobbled together from other gobbled together stuff so pythonista comments or such can go to /dev/null Wink
(2017-05-02, 17:41)ironic_monkey Wrote: [ -> ]https://pastebin.com/bpxhykpg illustrates the normal, the bad and the good. the cluestick is the value of isFolder for the two items. it's all gobbled together from other gobbled together stuff so pythonista comments or such can go to /dev/null Wink

Thanks, this example helps a lot