diff --git a/copyparty/__version__.py b/copyparty/__version__.py index 2cc1db98..65ef1b33 100644 --- a/copyparty/__version__.py +++ b/copyparty/__version__.py @@ -1,6 +1,6 @@ # coding: utf-8 -VERSION = (0, 9, 12) +VERSION = (0, 9, 13) CODENAME = "the strongest music server" BUILD_DT = (2021, 3, 23) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index de50ad07..e01e748a 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -1295,7 +1295,7 @@ class HttpCli(object): tags = {} f["tags"] = tags - + if not r: continue @@ -1306,7 +1306,7 @@ class HttpCli(object): tags[k] = v if icur: - taglist = [k for k in vn.flags["mte"].split(",") if k in taglist] + taglist = [k for k in vn.flags.get("mte", "").split(",") if k in taglist] for f in dirs: f["tags"] = {} @@ -1379,7 +1379,9 @@ class HttpCli(object): ts=ts, perms=json.dumps(perms), taglist=taglist, - tag_order=json.dumps(vn.flags["mte"].split(",")), + tag_order=json.dumps( + vn.flags["mte"].split(",") if "mte" in vn.flags else [] + ), have_up2k_idx=("e2d" in vn.flags), have_tags_idx=("e2t" in vn.flags), logues=logues,