2018-09-03, 14:58
Hey,
I'm developing video plugin that retractive information about tcshows (local server) with metadata and show it inside kodi. Information in retrieverd as json.
You have list "all", enter it, kodi send request for 'all', parse json and list every tvshow (and metadata about it) in list (via listitems).
You enter 'tvshow', kodi send request for that 'tvshow', parse json and list every episode in that show (that are stored on local machine) and metadata about those episodes.
Problem is that 'folder' aren't treat equal to episodes so sorting/filtering in default skin ignore some information, I found out that using isFolder=False to resolve this but...
I been always using ListItem with isFolder=True for TVShows and list episodes inside that list but thats not good.
If TVShow is added to kodi library they get all information (from scrapper) and are treat equal to episodes (look above) but you can enter them - so they are folders ?
How can I emulate same behavior for my plugin ? When doing isFolder=False I end up with handle -1 and error. When I use isFolder=True It work but sorting/filtering/view is a bit broken.
I'm developing video plugin that retractive information about tcshows (local server) with metadata and show it inside kodi. Information in retrieverd as json.
You have list "all", enter it, kodi send request for 'all', parse json and list every tvshow (and metadata about it) in list (via listitems).
You enter 'tvshow', kodi send request for that 'tvshow', parse json and list every episode in that show (that are stored on local machine) and metadata about those episodes.
Problem is that 'folder' aren't treat equal to episodes so sorting/filtering in default skin ignore some information, I found out that using isFolder=False to resolve this but...
I been always using ListItem with isFolder=True for TVShows and list episodes inside that list but thats not good.
If TVShow is added to kodi library they get all information (from scrapper) and are treat equal to episodes (look above) but you can enter them - so they are folders ?
How can I emulate same behavior for my plugin ? When doing isFolder=False I end up with handle -1 and error. When I use isFolder=True It work but sorting/filtering/view is a bit broken.