Proper fix

This commit is contained in:
dave 2017-08-14 00:24:01 -07:00
parent d5f1626c0f
commit 301ce666ca
1 changed files with 2 additions and 2 deletions

View File

@ -186,8 +186,8 @@ class PysonicApi(object):
type="music")
if "." in item["name"]:
child.attrs["suffix"] = item["name"].split(".")[-1]
if "type" in item_meta:
child.attrs["contentType"] = item_meta["type"]
if item["type"]:
child.attrs["contentType"] = item["type"]
if 'cover' in item_meta:
child.attrs["coverArt"] = item_meta["cover"]
elif 'cover' in dir_meta: