2021-09-01, 23:39
Hi,
I'm trying to run one of my addon by an external url:
But when the code reaches to the listItem.setInfo it makes kodi to crash.
This function works well with Kodi 17.6 using this external url,
And also works well when try to run this item from the addon manually (Kodi 17 & 19).
So it may be something with running it using the external url in Kodi 19.
This is the code:
(Description also tested as None, '', 'a'. I also tried to change the other variables with different strings, but still the same)
I also checked the variable by printing them to the log on those cases:
- Kodi 17.6 (Internal/External)
- Kodi 19.1 (Internal/External)
All of them show exactly the same values of the setInfo params.
By the way, when trying to run "setInfo" it prints also to the logs this lines:
(Sometimes one, sometimes two,three times) then kodi crash.
Also for some reason running again the plugin immediatly after the first try failed by the setInfo failure.
After the second time kodi is crashing.
I made a lot of tests in this thread:
https://forum.kodi.tv/showthread.php?tid=364249
It seems that the problem is in Kodi System level and not Addon level.
Something has probably changed between Kodi 17 to Kodi 19 about running addons by external url.
Maybe it's something in the background the make setInfo to crash Kodi when running the addon with the external url.
Maybe Threding issue or Encoding/Decoding or something else.
I'm trying to run one of my addon by an external url:
But when the code reaches to the listItem.setInfo it makes kodi to crash.
This function works well with Kodi 17.6 using this external url,
And also works well when try to run this item from the addon manually (Kodi 17 & 19).
So it may be something with running it using the external url in Kodi 19.
This is the code:
Code:
listItem = xbmcgui.ListItem(path=url)
listItem.setInfo(type="video", infoLabels={"mediatype": "movie", "studio": channelName, "title": programmeName, "plot": description, "tvshowtitle": channelName, "episode": 0, "season": 0})
Code:
DEBUG <general>: url: https://d18b0e6mopany4.cloudfront.net/ou...ozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36&Referer=https://13tv.co.il/live/
DEBUG <general>: programmeName: [COLOR yellow]ערוץ 13 - רשת (HD)[/COLOR]
DEBUG <general>: description:
DEBUG <general>: channelName: [COLOR yellow]ערוץ 13 - רשת (HD)[/COLOR]
I also checked the variable by printing them to the log on those cases:
- Kodi 17.6 (Internal/External)
- Kodi 19.1 (Internal/External)
All of them show exactly the same values of the setInfo params.
By the way, when trying to run "setInfo" it prints also to the logs this lines:
(Sometimes one, sometimes two,three times) then kodi crash.
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 -
After the second time kodi is crashing.
I made a lot of tests in this thread:
https://forum.kodi.tv/showthread.php?tid=364249
It seems that the problem is in Kodi System level and not Addon level.
Something has probably changed between Kodi 17 to Kodi 19 about running addons by external url.
Maybe it's something in the background the make setInfo to crash Kodi when running the addon with the external url.
Maybe Threding issue or Encoding/Decoding or something else.