Skip to content

Commit 575859c

Browse files
committed
Add support for offscreen (fixup)
1 parent b19ed31 commit 575859c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
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="19.0.3">
1+
<addon id="script.module.xbmcswift2" name="xbmcswift2" provider-name="Jonathan Beluch (jbel), enen92" version="19.0.4">
22
<requires>
33
<import addon="xbmc.python" version="3.0.0" />
44
</requires>

lib/xbmcswift2/listitem.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,13 +190,14 @@ def as_xbmc_listitem(self):
190190
def from_dict(cls, label=None, label2=None, icon=None, thumbnail=None,
191191
path=None, selected=None, info=None, properties=None,
192192
context_menu=None, replace_context_menu=False,
193-
is_playable=None, info_type='video', stream_info=None, fanart=None):
193+
is_playable=None, info_type='video', stream_info=None, fanart=None,
194+
offscreen=False):
194195
'''A ListItem constructor for setting a lot of properties not
195196
available in the regular __init__ method. Useful to collect all
196197
the properties in a dict and then use the **dct to call this
197198
method.
198199
'''
199-
listitem = cls(label, label2, icon, thumbnail, path, fanart)
200+
listitem = cls(label, label2, icon, thumbnail, path, fanart, offscreen)
200201

201202
if selected is not None:
202203
listitem.select(selected)

0 commit comments

Comments
 (0)