Changes to the python API for Kodi Krypton
#31
2016-10-16 xbmcgui.Dialog().select() - additions

- you can now also pass listitems to the select dialog

- the new 'useDetails' keyword can be used to enable the detailed mode of the selectdialog
in this mode, ListItem.Label2 and ListItem.Icon will also be shown
(in the standard mode, only ListItem.Label is shown in the dialog)

Code:
ret = dialog.select('header label', list=listitems, useDetails=True)

pull request: https://github.com/xbmc/xbmc/pull/10586
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#32
2016-11-02 xbmcgui.DialogBusy() - additions

- you can now properly use the busy dialog

- with "update" method you can also make use of a progressbar (in case the skin supports it)

Code:
busy = xbmcgui.DialogBusy()
busy.create()
...
busy.close()

pull request: https://github.com/xbmc/xbmc/pull/10699
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#33
2016-11-01 xbmcgui.Dialog().info() - additions

- you can now open the infodialog for a given listitem.

- chooses proper infodialog based on ListItem InfoTag.

Code:
ret = xbmcgui.Dialog().info(123)
(ret = true when dialog was opened successfully)

pull request: https://github.com/xbmc/xbmc/pull/10616
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#34
2016-11-01 xbmcgui.ListItem.setCast() - additions

- separate method to set the cast

- supports actor thumbs

Code:
Listitem.setCast({"name": "some Name", "role": "some role"})

supported dict keys:

"name": Name of Actor
"role": Role name
"order": Order in List
"thumbnail": Path to actor image

pull request: https://github.com/xbmc/xbmc/pull/10619
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#35
(2016-09-24, 13:05)ronie Wrote: 2016-07-16 Addon.xml - assets tag

addons can add an <assets> tag to the xbmc.addon.metadata section in your addon.xml file.
inside the assets tag, you should specify the path to the icon.png, fanart.jpg and screenshot files (screenshots aren't mandatory).
this means icon & fanart don't have to be placed at the root of your addon anymore.

git commit: https://github.com/xbmc/xbmc/commit/d071...67283fb707
pull request: https://github.com/xbmc/xbmc/pull/10060

Are the asset tags backward compatible with earlier versions (will v16 ignore asset tags if I add them to my addon.xml or will it flag the addon somehow as incompatible)?

Also, are URLs an option for asset tags (mainly for screenshots)?

Thanks!
Reply
#36
v16 will simply ignore those tags, so yup, backwards compatible.

i doubt remote artwork will work, but can't say i've ever tested it.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#37
(2017-03-02, 19:04)ronie Wrote: v16 will simply ignore those tags, so yup, backwards compatible.

i doubt remote artwork will work, but can't say i've ever tested it.

Thanks. Confirmed it doesn't like URLs. Maybe an enhancement for future releases.
Code:
12:56:44.875 T:140735336022016   DEBUG: We have an error loading picture 7!
12:56:44.875 T:140735336022016   ERROR: Error loading the current image 7: image://%2fUsers%2fZC%2fLibrary%2fApplication%20Support%2fKodi%2faddons%2fplugin.program.iarl%2fhttp%3a%2f%2fi.imgur.com%2fDpsW9Ed.jpg/
Reply

Logout Mark Read Team Forum Stats Members Help
Changes to the python API for Kodi Krypton1