Skip to content

Commit 28841c5

Browse files
committed
Offscreen fixup
1 parent 78448fe commit 28841c5

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

addon.xml

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

lib/xbmcswift2/listitem.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -194,13 +194,14 @@ def as_xbmc_listitem(self):
194194
def from_dict(cls, label=None, label2=None, icon=None, thumbnail=None,
195195
path=None, selected=None, info=None, properties=None,
196196
context_menu=None, replace_context_menu=False,
197-
is_playable=None, info_type='video', stream_info=None, fanart=None):
197+
is_playable=None, info_type='video', stream_info=None, fanart=None,
198+
offscreen=False):
198199
'''A ListItem constructor for setting a lot of properties not
199200
available in the regular __init__ method. Useful to collect all
200201
the properties in a dict and then use the **dct to call this
201202
method.
202203
'''
203-
listitem = cls(label, label2, icon, thumbnail, path, fanart)
204+
listitem = cls(label, label2, icon, thumbnail, path, fanart, offscreen)
204205

205206
if selected is not None:
206207
listitem.select(selected)

0 commit comments

Comments
 (0)