Kodi Community Forum
v19 Addon Logging Deprecation: NOTICE/SEVERE levels to be deprecated by end of June '20 - 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: v19 Addon Logging Deprecation: NOTICE/SEVERE levels to be deprecated by end of June '20 (/showthread.php?tid=353818)

Pages: 1 2


RE: Addon Logging Deprecation: NOTICE/SEVERE levels to be deprecated by end of June '20 - phunkyfish - 2020-11-14

That won’t be removed till kodi 20. It has only be deprecated in Kodi 19.


RE: Addon Logging Deprecation: NOTICE/SEVERE levels to be deprecated by end of June '20 - gujal - 2020-11-14

(2020-11-14, 20:45)phunkyfish Wrote: That won’t be removed till kodi 20. It has only be deprecated in Kodi 19.
Thank you


RE: Addon Logging Deprecation: NOTICE/SEVERE levels to be deprecated by end of June '20 - davelee77 - 2023-10-11

Hello,
I am reaching out as earlier today, I started to see warning<general>: I am new to python itself as of about a month ago and about 6 months or so to the chats. Despite my somewhat long time use of Kodi. I'm curious to know, in these messages, is there a way for me to have dumbed down, to identify what exactly needs to be changed here? I assume you replace the old with the new. In the first example, I wasn't sure if I am supposed to list all three in the same spot with each other I found some of them but don't want to change anything until I have a clearer understanding. These were located in the Log Viewer. I am not around to try anything at the moment or send image of logfile. Thanks! For example:

ListItem.addStreamInfo() should be replaced with InfoTagVideo.addVideoStream(), InfoTagVideo.addAudioStream() and InfoTagVideo.addSubtitleStream().

OR 

Setting most vide properties through ListItem.setInfo() is deprecated and might be removed in future Kodi versions. Please use the respective setter in InfoTagVideo.

Please advise. Thanks!


RE: Addon Logging Deprecation: NOTICE/SEVERE levels to be deprecated by end of June '20 - izprtxqkft - 2023-10-11

(2023-10-11, 07:33)davelee77 Wrote: I'm curious to know, in these messages, is there a way for me to have dumbed down, to identify what exactly needs to be changed here?

it's all in the Kodi Development documentation

lookup the current function call f.e. addStreamInfo - https://alwinesch.github.io/group__python__xbmcgui__listitem.html#ga99c7bf16729b18b6378ea7069ee5b138

there is a note at the bottom of the spec to say it is deprecated and what to use instead

lookup what it tells you it is replaced with f.e. - addVideoStream - https://alwinesch.github.io/group__python___info_tag_video.html#ga9af83719ca8cabaf6e3e47f87a012d99

open the code and implement it the way the documentation tells you to


most are not copy and paste to a new function name, the new functions add functionality over the previous

but, in some cases it can be simply changed - rarely


RE: Addon Logging Deprecation: NOTICE/SEVERE levels to be deprecated by end of June '20 - davelee77 - 2023-10-11

Awesome. Thank you for the direction. I'll check it out this evening after class. 😊👍🏻


RE: Addon Logging Deprecation: NOTICE/SEVERE levels to be deprecated by end of June '20 - jbinkley60 - 2023-10-11

(2023-10-11, 07:33)davelee77 Wrote: supposed to list all three in the same spot with each other I found some of them but don't want to change anything until I have a clearer understanding. These were located in the Log Viewer. I am not around to try anything at the moment or send image of logfile. Thanks! For example:

ListItem.addStreamInfo() should be replaced with InfoTagVideo.addVideoStream(), InfoTagVideo.addAudioStream() and InfoTagVideo.addSubtitleStream().

OR 

Setting most vide properties through ListItem.setInfo() is deprecated and might be removed in future Kodi versions. Please use the respective setter in InfoTagVideo.

Please advise. Thanks!

Here's a good thread on this topic.

https://forum.kodi.tv/showthread.php?tid=369255


Thanks,

Jeff


RE: Addon Logging Deprecation: NOTICE/SEVERE levels to be deprecated by end of June '20 - scott967 - 2023-10-11

There's an official addon, infotagger, that you can add to your project's addon.xml as a dependency (so it gets added to your sys path) then import it and use its methods to implement the new xbmc classes/methods on existing python code (i.e., setinfo).

scott s.
.