Skip to content

Commit

Permalink
Remove offscreen functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
enen92 committed Dec 15, 2020
1 parent 28841c5 commit de54093
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/xbmcswift2/listitem.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,14 @@ 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, offscreen=False):
path=None, fanart=None):
'''Defaults are an emtpy string since xbmcgui.ListItem will not
accept None.
'''
kwargs = {
'label': label,
'label2': label2,
'path': path,
'offscreen': offscreen
'path': path
}
#kwargs = dict((key, val) for key, val in locals().items() if val is
#not None and key != 'self')
Expand Down Expand Up @@ -194,14 +193,13 @@ 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,
offscreen=False):
is_playable=None, info_type='video', stream_info=None, fanart=None):
'''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, offscreen)
listitem = cls(label, label2, icon, thumbnail, path, fanart)

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

0 comments on commit de54093

Please sign in to comment.