Skip to content

Commit

Permalink
Add support for offscreen (fixup)
Browse files Browse the repository at this point in the history
  • Loading branch information
enen92 committed Dec 8, 2020
1 parent b19ed31 commit 575859c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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="19.0.3">
<addon id="script.module.xbmcswift2" name="xbmcswift2" provider-name="Jonathan Beluch (jbel), enen92" version="19.0.4">
<requires>
<import addon="xbmc.python" version="3.0.0" />
</requires>
Expand Down
5 changes: 3 additions & 2 deletions lib/xbmcswift2/listitem.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,13 +190,14 @@ def as_xbmc_listitem(self):
def from_dict(cls, label=None, label2=None, icon=None, thumbnail=None,
path=None, selected=None, info=None, properties=None,
context_menu=None, replace_context_menu=False,
is_playable=None, info_type='video', stream_info=None, fanart=None):
is_playable=None, info_type='video', stream_info=None, fanart=None,
offscreen=False):
'''A ListItem constructor for setting a lot of properties not
available in the regular __init__ method. Useful to collect all
the properties in a dict and then use the **dct to call this
method.
'''
listitem = cls(label, label2, icon, thumbnail, path, fanart)
listitem = cls(label, label2, icon, thumbnail, path, fanart, offscreen)

if selected is not None:
listitem.select(selected)
Expand Down

0 comments on commit 575859c

Please sign in to comment.