Optimize capitalization
This commit is contained in:
parent
828a580031
commit
b2139ce150
1 changed files with 2 additions and 3 deletions
|
@ -474,7 +474,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"].iteritems():
|
for key, value in item["extraproperties"].iteritems():
|
||||||
|
@ -532,8 +532,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"),
|
||||||
|
|
Loading…
Reference in a new issue