Fix videos not starting due to TypeError
This commit is contained in:
parent
edf4369454
commit
7720d3f392
1 changed files with 3 additions and 2 deletions
|
@ -464,10 +464,11 @@ def prepare_listitem(item):
|
||||||
LOG.exception('Exception encountered: %s', exc)
|
LOG.exception('Exception encountered: %s', exc)
|
||||||
|
|
||||||
|
|
||||||
def create_listitem(item, as_tuple=True, offscreen=True):
|
def create_listitem(item, as_tuple=True, offscreen=True,
|
||||||
|
listitem=xbmcgui.ListItem):
|
||||||
"""helper to create a kodi listitem from kodi compatible dict with mediainfo"""
|
"""helper to create a kodi listitem from kodi compatible dict with mediainfo"""
|
||||||
try:
|
try:
|
||||||
liz = xbmcgui.ListItem(
|
liz = listitem(
|
||||||
label=item.get("label", ""),
|
label=item.get("label", ""),
|
||||||
label2=item.get("label2", ""),
|
label2=item.get("label2", ""),
|
||||||
path=item['file'],
|
path=item['file'],
|
||||||
|
|
Loading…
Reference in a new issue