Notice to addon devs - 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: Notice to addon devs (/showthread.php?tid=173887) |
Notice to addon devs - Martijn - 2013-09-19 script.module.elementtree It seems that we are still using the script.module.elementtree however this is no longer needed since python version 2.5 and higher. Since XBMC uses python 2.6 or higher it is safe to use elementtree that has been included in python. To use it simply include this (for example): PHP Code: import xml.etree.ElementTree as ET More information can be found here http://docs.python.org/2/library/xml.etree.elementtree.html On next update it would be appreciated if you could replace the used module with the build in one. script.module.simplejson It seems that from python 2.7 and up the internal JSON lib is faster than the external script.module.simplejson that most of us use. To test this out for yourself you can download script.json.performance-0.0.1.zip and try it out for yourself what the difference is. Note: running the addon gives no indication during it's testing so have some patience until the dialog pops up. Since some platforms use 2.6 you can use the following code to use the fastest method: PHP Code: if sys.version_info >= (2, 7): Tests done with JSON:
So all in all using simplejson doesn't seem like the obvious choice. So i would recommend every script dev to use the code posted in OP to use the fastest method. results may differ per machine/test Repo cleanup: We are trying to keep things more tidy so once in a while we try to clean up broken addons or unmaintained ones. Dharma: If you have addons that are still in Dharma repo which should be marked broken or removed please contact us so we can take action. We will not allow any updates for them any more so only action is to remove or mark them broken. Current list: http://mirrors.xbmc.org/addons/dharma/ Eden: If you have addons that are still in Eden repo which should be marked broken or removed please contact us so we can take action. For Frodo we still allow updates so if you which you could also send an update. No new additions will be allowed. Current list: http://mirrors.xbmc.org/addons/eden/ Frodo: We would like to request that you updated you plugin with the following:
Current list: http://mirrors.xbmc.org/addons/frodo/ Remember that Eden and Frodo versions should differ regarding version number and xbmc.python version when submitted. Thanks you. Deprecate usage of explicitly setting the player in add-ons We would like to ask when you update your plugin to no longer use the option for selection the internal player. So instead of: PHP Code: xbmc.Player([core]) just use: PHP Code: xbmc.Player() RE: Notice to addon devs: script.module.elementtree - Eldorado - 2013-09-19 Didn't know of this, thanks! Is there a plan to remove script.module.elementtree from the xbmc repo? RE: Notice to addon devs: script.module.elementtree - Martijn - 2013-09-19 (2013-09-19, 22:57)Eldorado Wrote: Didn't know of this, thanks! not really to many addons rely on it. just thought i'd mention and might as well change it if we update our addons RE: Notice to addon devs - Martijn - 2013-09-19 Also added some information about simplejson module. if possible let us know the results if you test it RE: Notice to addon devs - Martijn - 2013-09-21 Tests done with JSON:
So all in all using simplejson doesn't seem like the obvious choice. So i would recommend every script dev to use the code posted in OP to use the fastest method. RE: Notice to addon devs - Martijn - 2013-09-22 Repo cleanup: We are trying to keep things more tidy so once in a while we try to clean up broken addons or unmaintained ones. Dharma: If you have addons that are still in Dharma repo which should be marked broken or removed please contact us so we can take action. We will not allow any updates for them any more so only action is to remove or mark them broken. Current list: http://mirrors.xbmc.org/addons/dharma/ Eden: If you have addons that are still in Eden repo which should be marked broken or removed please contact us so we can take action. For Frodo we still allow updates so if you which you could also send an update. No new additions will be allowed. Current list: http://mirrors.xbmc.org/addons/eden/ Frodo: We would like to request that you updated you plugin with the following:
Current list: http://mirrors.xbmc.org/addons/frodo/ Remember that Eden and Frodo versions should differ regarding version number and xbmc.python version when submitted. Thanks you. RE: Notice to addon devs - divingmule - 2013-09-23 @Martijn Any add-on's of mine in the Dharma repo should be considered unmaintained / likely broken. Would you like for me to send a list? RE: Notice to addon devs - Martijn - 2013-09-23 (2013-09-23, 16:21)divingmule Wrote: @Martijn send you mail with the list. thx RE: Notice to addon devs - realtebo - 2013-09-24 About required elements in addon.xml [http://wiki.xbmc.org/index.php?title=Addon.xml#Required_additional_information] Really is mandatory a forum url !? I ve not a forum, what msut I do? Create a thread in this forum and then use the thread link as url ? RE: Notice to addon devs - Martijn - 2013-09-24 (2013-09-24, 20:43)realtebo Wrote: About required elements in addon.xml [http://wiki.xbmc.org/index.php?title=Addon.xml#Required_additional_information] just keep it empty <forum></forum> same for the others in that section if you do not want to fill them in. RE: Notice to addon devs - Martijn - 2013-09-29 Deprecate usage of explicitly setting the player in add-ons We would like to ask when you update your plugin to no longer use the option for selection the internal player. So instead of: PHP Code: xbmc.Player([core]) just use: PHP Code: xbmc.Player() Current list of addons that use this: Quote:plugin.audio.listenliveeu RE: Notice to addon devs - Martijn - 2013-09-29 Do not use os.getcwd() There are still some addons that are using PHP Code: os.getcwd() PHP Code: xbmc.translatePath(xbmcaddon.Addon.getAddonInfo('path')).decode('utf-8') This is the list of add-ons that are still using it: Quote:plugin.image.500px RE: Notice to addon devs - Martijn - 2013-09-29 Do not use executehttpapi - it does not work since Frodo PHP Code: executehttpapi(httpcommand) These are the ones still using it: Quote:script.cdartmanager RE: Notice to addon devs - malte - 2013-09-29 Is it ok to use it like this? Code: try: I don't want to maintain a branch for each release, so I tried to be backward compatible. RE: Notice to addon devs - Martijn - 2013-09-29 (2013-09-29, 18:20)malte Wrote: Is it ok to use it like this? I see you only use it twice. So imo it's ok for now. Do note that with current addon.xml you can't install it on Eden due to unmet dependency. |