Skip to content

Commit

Permalink
Add offscreen support in Listitems
Browse files Browse the repository at this point in the history
  • Loading branch information
enen92 committed Dec 8, 2020
1 parent 34ab1b5 commit 78448fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addon.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<addon id="script.module.xbmcswift2" name="xbmcswift2" provider-name="Jonathan Beluch (jbel), enen92" version="13.0.0">
<addon id="script.module.xbmcswift2" name="xbmcswift2" provider-name="Jonathan Beluch (jbel), enen92" version="13.0.1">
<requires>
<import addon="xbmc.python" version="2.14.0" />
</requires>
Expand Down
3 changes: 2 additions & 1 deletion lib/xbmcswift2/listitem.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@ 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.
'''
kwargs = {
'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')
Expand Down

0 comments on commit 78448fe

Please sign in to comment.