Skip to content

Commit 78448fe

Browse files
committed
Add offscreen support in Listitems
1 parent 34ab1b5 commit 78448fe

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

addon.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<addon id="script.module.xbmcswift2" name="xbmcswift2" provider-name="Jonathan Beluch (jbel), enen92" version="13.0.0">
1+
<addon id="script.module.xbmcswift2" name="xbmcswift2" provider-name="Jonathan Beluch (jbel), enen92" version="13.0.1">
22
<requires>
33
<import addon="xbmc.python" version="2.14.0" />
44
</requires>

lib/xbmcswift2/listitem.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,15 @@ class ListItem(object):
1717
of any set properties that xbmcgui doesn't expose getters for.
1818
'''
1919
def __init__(self, label=None, label2=None, icon=None, thumbnail=None,
20-
path=None, fanart=None):
20+
path=None, fanart=None, offscreen=False):
2121
'''Defaults are an emtpy string since xbmcgui.ListItem will not
2222
accept None.
2323
'''
2424
kwargs = {
2525
'label': label,
2626
'label2': label2,
2727
'path': path,
28+
'offscreen': offscreen
2829
}
2930
#kwargs = dict((key, val) for key, val in locals().items() if val is
3031
#not None and key != 'self')

0 commit comments

Comments
 (0)