Programmatically Selecting a ListItem in a Plugin
Kodi has the nice setting to select the first unwatched episode of a series. That's great, but it doesn't work in addons, and since addons are not necessarily providing a list that is relevant to that setting, it's fine.
Not working code that I think should
The plugin_dir object adds directory items and calls endofdirectory. I'm confident that code works well, but posting all of it would clutter up the forums.
My issue is that, selected: bool) -> None seems to do absolutely nothing, let alone what it's supposed to.
Working code that isn't reliable or good practice
This code works, but if it's called without enough time for Kodi to do proper endOfDirectory() stuff, then it does nothing, as the directory doesn't exist yet. It's generally bad practice to wait an arbitrary amount of time and assume it's enough, so what are my options?
Developer for Shoko and Nakamori. Long time user of Kodi, before it was even called Kodi. My XBOX died long ago, but Windows is still just as broken and necessary. I obviously watch anime, given my first comment. Video games, manga, music, you name it.
Thread Rating:
  • 0 Vote(s) - 0 Average

Logout Mark Read Team Forum Stats Members Help
Programmatically Selecting a ListItem in a Plugin00