Proper fix
This commit is contained in:
parent
d5f1626c0f
commit
301ce666ca
|
@ -186,8 +186,8 @@ class PysonicApi(object):
|
||||||
type="music")
|
type="music")
|
||||||
if "." in item["name"]:
|
if "." in item["name"]:
|
||||||
child.attrs["suffix"] = item["name"].split(".")[-1]
|
child.attrs["suffix"] = item["name"].split(".")[-1]
|
||||||
if "type" in item_meta:
|
if item["type"]:
|
||||||
child.attrs["contentType"] = item_meta["type"]
|
child.attrs["contentType"] = item["type"]
|
||||||
if 'cover' in item_meta:
|
if 'cover' in item_meta:
|
||||||
child.attrs["coverArt"] = item_meta["cover"]
|
child.attrs["coverArt"] = item_meta["cover"]
|
||||||
elif 'cover' in dir_meta:
|
elif 'cover' in dir_meta:
|
||||||
|
|
Loading…
Reference in New Issue