From b2139ce150c43b221cfcf95f92871007d2f47c86 Mon Sep 17 00:00:00 2001 From: croneter Date: Sun, 24 Jan 2021 14:53:43 +0100 Subject: [PATCH] Optimize capitalization --- resources/lib/widgets.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/resources/lib/widgets.py b/resources/lib/widgets.py index b9c779a2..fbc6487c 100644 --- a/resources/lib/widgets.py +++ b/resources/lib/widgets.py @@ -474,7 +474,7 @@ def create_listitem(item, as_tuple=True, offscreen=True, nodetype = "Video" if item["type"] in ["song", "album", "artist"]: - nodetype = "Music" + nodetype = "music" # extra properties for key, value in item["extraproperties"].iteritems(): @@ -532,8 +532,7 @@ def create_listitem(item, as_tuple=True, offscreen=True, if "date" in item: infolabels["date"] = item["date"] - # music infolabels - else: + elif nodetype == 'music': infolabels = { "title": item.get("title"), "size": item.get("size"),