Solved v19 - Can't playing local plugin url (Kodi crashes)
#31
(2021-09-04, 17:30)jbinkley60 Wrote: I understand that you are using a URL to call the addon.  What I am less clear about is what is generating the URL and instead of generating a URL to call the addon can it use either "RunScript or RunAddon functions" ?  What you are seeing in the logs is Kodi translating the URL to a native RunScript command internally.  My question is whether the URL approach can be bypassed and use the direct native approach ?  Maybe not and in the end you may be 100% right in that setting info from an externally addon call for a listitem may have gotten broken with Kodi 19.  The Kodi developers need to weigh in here.  I don't do any listitem creation with any of my RunScript calls. 


Jeff
More and more it seems that this is the issue, as you said: "setting info from an externally addon call for a listitem may have gotten broken with Kodi 19"

I don't know how the url is generated but I just took it from pvr list.
You can even just copy this external url to your browser, run it while kodi is opened, and it will start running the plugin and run in accordance with the url args and so on...
So I don't know if it using 'RunScript' or 'RunAddon' functions (According to the logs it seems 'RunScript')

I'm still waiting for the Kodi's Team answers.
Reply
#32
@jbinkley60 

Well, it seems that I found the fix of the ListItem functions by adding this param: offscreen (Which I found that it was added in v18, and not shown in v19 docs)
Code:
listItem = xbmcgui.ListItem(path=url, offscreen=True)

But I still don't know why it's not playing.
Also it still runs the plugin twice as I said from unknown reason.

The code for playing: (I think)
Code:
xbmcplugin.setResolvedUrl(handle=int(sys.argv[1]), succeeded=True, listitem=listItem)

Kodi Debug log: https://paste.ubuntu.com/p/c9Rr5CNpYN
Reply
#33
The issue is resolved.
For more details check this:
https://forum.kodi.tv/showthread.php?tid=364399
And this:
https://forum.kodi.tv/showthread.php?tid...pid3059288
 
Thanks for you help.
Reply

Logout Mark Read Team Forum Stats Members Help
v19 - Can't playing local plugin url (Kodi crashes)0