Ignore missing type

This commit is contained in:
dave 2017-08-14 00:20:16 -07:00
parent 0c7fcd58b7
commit d5f1626c0f
1 changed files with 1 additions and 1 deletions

View File

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