From d5f1626c0f15d4ed062e00b69e15367e850dad81 Mon Sep 17 00:00:00 2001 From: dave Date: Mon, 14 Aug 2017 00:20:16 -0700 Subject: [PATCH] Ignore missing type --- pysonic/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pysonic/api.py b/pysonic/api.py index 403bfb7..dae583f 100644 --- a/pysonic/api.py +++ b/pysonic/api.py @@ -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"]