Kodi Community Forum

Full Version: Addon Logging Deprecation: NOTICE/SEVERE levels to be deprecated by end of June '20
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
That won’t be removed till kodi 20. It has only be deprecated in Kodi 19.
(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
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!
(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__pytho...069ee5b138

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__pytho...f87a012d99

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
Awesome. Thank you for the direction. I'll check it out this evening after class. 😊👍🏻
(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
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.
.
Pages: 1 2