(2021-09-01, 22:56)jbinkley60 Wrote: (2021-09-01, 14:20)burekas Wrote: @jbinkley60
No, It's is still not working, running the external url still makes kodi to crash.
What I said is that I probably found the location where the code fails / not works as should be, and maybe that what cause kodi to crash.
The log show that "xbmcgui.ListItem" has a value (<xbmcgui.ListItem object at 0x00000150186DDA50>), so it's not None.
All the variables of the "setInfo" params has values too (As I wrote in the previous comment)
So what does make the "setInfo" to fail? (Maybe these specific string values makes it to fail?)
I follow the docs and I don't find anything wrong.
https://codedocs.xyz/AlwinEsch/kodi/grou...2888fb5f14
(In Kodi 17.6 it works perfectly)
Ok, I looked at your code again. You posted it earlier as:
listItem.setInfo(type="video", infoLabels={"mediatype": "movie", "studio": channelName, "title": programmeName, "plot": description, "tvshowtitle": channelName, "episode": 0, "season": 0})
I think the valid options are:
infoLabels = "mediatype": "movie", "studio": channelName, "title": programmeName, "plot": description, "tvshowtitle": channelName, "episode": 0, "season": 0}
listItem.setInfo(type="video", infoLabels)
or
listItem.setInfo(type="video", {"mediatype": "movie", "studio": channelName, "title": programmeName, "plot": description, "tvshowtitle": channelName, "episode": 0, "season": 0})
One of those should work for you.
Jeff
@
jbinkley60
Doesn't work.
You can't mix, positional argument follows keyword argument
The first options return a syntax error:
Code:
infoLabels={"mediatype": "movie", "studio": channelName, "title": programmeName, "plot": description, "tvshowtitle": channelName, "episode": 0, "season": 0}
listItem.setInfo(type="video", infoLabels)
Code:
ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'SyntaxError'>
Error Contents: positional argument follows keyword argument (default.py, line 184)
File "D:\Program Files (x86)\Kodi v19.1 x64\portable_data\addons\plugin.video.israelive\default.py", line 184
listItem.setInfo(type="video", infoLabels)
^
SyntaxError: positional argument follows keyword argument
-->End of Python script error report<--
The second option return the same error:
Code:
listItem.setInfo(type="video", {"mediatype": "movie", "studio": channelName, "title": programmeName, "plot": description, "tvshowtitle": channelName, "episode": 0, "season": 0})
Code:
ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'SyntaxError'>
Error Contents: positional argument follows keyword argument (default.py, line 184)
File "D:\Program Files (x86)\Kodi v19.1 x64\portable_data\addons\plugin.video.israelive\default.py", line 184
listItem.setInfo(type="video", {"mediatype": "movie", "studio": channelName, "title": programmeName, "plot": description, "tvshowtitle": channelName, "episode": 0, "season": 0})
^
SyntaxError: positional argument follows keyword argument
-->End of Python script error report<--
I don't think this is the problem, I think maybe one of the variables valus cause a problem.
Although that in kodi 17.6 it's working well.
In addition, running the addon manually and playing it, setInfo doesn't make kodi to crash.
This is something with running the plugin with the external url and not the syntax.
By the way when doing "setInfo" it print to the logs this lines:
Code:
ERROR <general>: 127.0.0.1 - - [02/Sep/2021 00:14:19] "GET /?url=plugin://plugin.video.israelive/&channelid=3&mode=11 HTTP/1.1" 200 -
(Sometimes one, sometimes three times) then kodi crash.