Optimize capitalization

This commit is contained in:
croneter 2021-01-24 14:53:43 +01:00
parent e535a8cf70
commit 9d02e19a68

View file

@ -464,7 +464,7 @@ def create_listitem(item, as_tuple=True, offscreen=True,
nodetype = "Video" nodetype = "Video"
if item["type"] in ["song", "album", "artist"]: if item["type"] in ["song", "album", "artist"]:
nodetype = "Music" nodetype = "music"
# extra properties # extra properties
for key, value in item["extraproperties"].items(): for key, value in item["extraproperties"].items():
@ -522,8 +522,7 @@ def create_listitem(item, as_tuple=True, offscreen=True,
if "date" in item: if "date" in item:
infolabels["date"] = item["date"] infolabels["date"] = item["date"]
# music infolabels elif nodetype == 'music':
else:
infolabels = { infolabels = {
"title": item.get("title"), "title": item.get("title"),
"size": item.get("size"), "size": item.get("size"),