Method to inhibit Kodi level error?
#1
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!
Reply
#2
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.
Reply
#3
(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.
Reply
#4
pydocs:
https://codedocs.xyz/xbmc/xbmc/group__py...0d8d77fff6
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
#5
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
Reply
#6
(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
Reply

Logout Mark Read Team Forum Stats Members Help
Method to inhibit Kodi level error?0