diff --git a/addon.xml b/addon.xml index e10e289..53230ac 100644 --- a/addon.xml +++ b/addon.xml @@ -1,4 +1,4 @@ - + @@ -9,7 +9,7 @@ GPL-3.0 xbmcswift2 is a small framework to ease development of KODI addons. xbmcswift2 is a small framework to ease development of KODI addons. - Move xbmc.translatepath to xbmcvfs.translatepath + Add support for offscreen in Listitems icon.png diff --git a/lib/xbmcswift2/listitem.py b/lib/xbmcswift2/listitem.py index 5d82413..6f4297d 100644 --- a/lib/xbmcswift2/listitem.py +++ b/lib/xbmcswift2/listitem.py @@ -17,7 +17,7 @@ class ListItem(object): of any set properties that xbmcgui doesn't expose getters for. ''' def __init__(self, label=None, label2=None, icon=None, thumbnail=None, - path=None, fanart=None): + path=None, fanart=None, offscreen=False): '''Defaults are an emtpy string since xbmcgui.ListItem will not accept None. ''' @@ -25,6 +25,7 @@ def __init__(self, label=None, label2=None, icon=None, thumbnail=None, 'label': label, 'label2': label2, 'path': path, + 'offscreen': offscreen } #kwargs = dict((key, val) for key, val in locals().items() if val is #not None and key != 'self')