Most efficient way to build xbmcgui.ListItem from JSON RPC VideoLibrary.GetMovieDetai - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26) +--- Thread: Most efficient way to build xbmcgui.ListItem from JSON RPC VideoLibrary.GetMovieDetai (/showthread.php?tid=378703) |
Most efficient way to build xbmcgui.ListItem from JSON RPC VideoLibrary.GetMovieDetai - kcook_shield - 2024-09-04 Are there any tricks/tips to populate multiple entries in a ListItem with details from the library? I have a need to use a specific list of library (only) items to populate for a video plugin (I prefer not to use Playlist/node because they do not seem to fill in all of the details, like cast, etc, unless I missed another way to pull this off). I want as much detail as possible filled in, so that the feel is as close to kodi built in list displays as possible, including resume points, etc. Do I really need to call VideoLibrary.GetMovieDetails for each movie, collect the data and set listitem via VideoInfoTag ? Is there no other way to get such a specified list of library entries displayed Just need any kind of pointers, not really needing code. Thanks! RE: Most efficient way to build xbmcgui.ListItem from JSON RPC VideoLibrary.GetMovieDetai - MoojMidge - 2024-09-07 https://kodi.wiki/view/JSON-RPC_API/v12#VideoLibrary.GetMovies You still need to create individual listitems and populate the infotag details. Depending on what you are after there are other ways e.g. https://kodi.wiki/view/Skinning_Manual#Filling_containers_with_dynamic_content https://forum.kodi.tv/showthread.php?tid=341640 RE: Most efficient way to build xbmcgui.ListItem from JSON RPC VideoLibrary.GetMovieDetai - Roman_V_M - 2024-09-07 I have a plugin that does exactly what you need: https://github.com/romanvm/kodi.external.library , that is, it populates media lists in a local Kodi from JSONs retrieved from a remote Kodi. But it's not simple at all. RE: Most efficient way to build xbmcgui.ListItem from JSON RPC VideoLibrary.GetMovieDetai - kcook_shield - 2024-09-08 Thank you both for the notes. The closest I could come was setting up a dynamic xsp like: xbmc.executebuiltin(f'ActivateWindow(Videos, "videodb://movies/titles/?xsp={encoded_filter}", return)') and This allows me to specify specific movies to be displayed. But it does lack some finer details like ability to sort in a specific order, and ability to easily click to get movie information. So I guess it will be necessary to deal with building listitems, which will allow the kind of control over the displayed list that I desire. Thank you Roman_V_M , I Like how you have setup: https://github.com/romanvm/kodi.external.library/blob/master/plugin.video.external.library/libs/media_info_service.py I will utilize something very similar. RE: Most efficient way to build xbmcgui.ListItem from JSON RPC VideoLibrary.GetMovieDetai - MoojMidge - 2024-09-10 (2024-09-08, 09:56)kcook_shield Wrote: But it does lack some finer details like ability to sort in a specific order, and ability to easily click to get movie information. It won't be as flexible as going the plugin route but if you dont need the additional functionality it will be much faster. You should be able to sort the listing as it is essentially the same as a smart playlist, and everything that you can do with those can also be done for this, including sorting afaik. As it is just listing library information, you should also be able to access the library information in the same way as you would for any other list of library items (via context menu, remote/keyboard press, or default select action if that has been configured, etc.) |