v18 How to fetch return results of a different AddOn when calling RunPlugin - 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: v18 How to fetch return results of a different AddOn when calling RunPlugin (/showthread.php?tid=341073) |
How to fetch return results of a different AddOn when calling RunPlugin - PX80 - 2019-02-19 Basically, i want to get a directory listing with search results from a foreign AddOn eg. Amazon VOD or Netflix or any media libary addon. Code Called: xbmc.executebuiltin("RunPlugin(plugin://plugin.video.netflix/?action=search_result&term=kill+bill)") Output 13:01:27.350 T:2188 DEBUG: "start netflix search" 13:01:27.350 T:2188 DEBUG: "end netflix search" 13:01:27.362 T:4668 DEBUG: XFILE::CPluginDirectory::RunScriptWithParams - calling plugin Netflix('plugin://plugin.video.netflix/','-1','?action=search_result&term=kill+bill','resume:false') 13:01:27.362 T:6100 DEBUG: Thread LanguageInvoker start, auto delete: false 13:01:27.828 T:6100 DEBUG: CAddonSettings[plugin.video.netflix]: loading setting definitions 13:01:27.828 T:6100 DEBUG: CAddonSettings[plugin.video.netflix]: trying to load setting definitions from old format... 13:01:27.828 T:6100 DEBUG: CAddonSettings[plugin.video.netflix]: loading setting values 13:01:27.829 T:6100 DEBUG: CSettingsManager: requested setting (logging) was not found. 13:01:27.834 T:6100 DEBUG: [Netflix] Started (Version 0.13.21) 13:01:27.834 T:6100 DEBUG: [Netflix] "Navigation::router" called with arguments :paramstring = action=search_result&term=kill+bill: 13:01:27.834 T:6100 DEBUG: [Netflix] "Navigation::before_routing_action" called with arguments :params = {'action': 'search_result', 'term': 'kill bill'}: 13:01:27.844 T:1700 DEBUG: [Netflix] Loading cookies from memory 13:01:27.845 T:1700 DEBUG: [Netflix] Cookie expires: 1550581050 / 1550577687 13:01:27.865 T:6100 DEBUG: [Netflix] "Navigation::before_routing_action" returned: {} 13:01:27.865 T:6100 DEBUG: [Netflix] "Navigation:how_search_results" called https://kodi.wiki/view/List_of_built-in_functions RunPlugin(plugin)Runs the plugin. Full path must be specified. Does not work for folder plugins --> i assume this means, this function will not suit my needs, or does it? A similar issue was described here: https://forum.kodi.tv/showthread.php?tid=328392 However, it was not about calling a "foreign' addon. I am not sure if this is a matter of sy handle, while i partiallly understand syshandles, i wouldnt know how to read back the retrun values. https://www.desinerd.co.in/kodi-addon-development-sys-argv-explained-build-menu/ RE: How to fetch return results of a different AddOn when calling RunPlugin - DarrenHill - 2019-02-19 Thread moved to add-on development RE: How to fetch return results of a different AddOn when calling RunPlugin - bigretromike - 2019-02-27 I don't think its possible, someone already said on similar thread that the results is a custom made window. With foreign you are unable to pass it without modification of original addon/plugin/script, but when you do then its not foreign anymore. The fastest way to make it is reuse the foreign part of searching and implement it into your addon. As documentation describe: xbmc.executebuiltin, its just for running/executing things => run, wait, close RE: How to fetch return results of a different AddOn when calling RunPlugin - PX80 - 2019-02-27 i thought so. thx for feedback. |