From 7720d3f392e975debe1c749a18afad1de0840794 Mon Sep 17 00:00:00 2001 From: croneter Date: Mon, 24 May 2021 20:26:25 +0200 Subject: [PATCH] Fix videos not starting due to TypeError --- resources/lib/widgets.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/lib/widgets.py b/resources/lib/widgets.py index 5ee37e35..c4fb9bc4 100644 --- a/resources/lib/widgets.py +++ b/resources/lib/widgets.py @@ -464,10 +464,11 @@ def prepare_listitem(item): 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""" try: - liz = xbmcgui.ListItem( + liz = listitem( label=item.get("label", ""), label2=item.get("label2", ""), path=item['file'],