Compare commits

..

2 Commits

Author SHA1 Message Date
ed
cd3e0afad2 v0.9.13 2021-03-23 02:13:28 +01:00
ed
d8d1f94a86 v0.9.12 2021-03-23 01:24:37 +01:00
3 changed files with 8 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
# coding: utf-8
VERSION = (0, 9, 11)
VERSION = (0, 9, 13)
CODENAME = "the strongest music server"
BUILD_DT = (2021, 3, 23)

View File

@@ -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,

View File

@@ -288,9 +288,9 @@ class Up2k(object):
self.pp.n = next(dbw[0].execute("select count(w) from up"))[0]
excl = [
vol.realpath + d.vpath[len(vol.vpath) :]
vol.realpath + "/" + d.vpath[len(vol.vpath) :].lstrip("/")
for d in all_vols
if d.vpath.startswith(vol.vpath + "/")
if d != vol and (d.vpath.startswith(vol.vpath + "/") or not vol.vpath)
]
n_add = self._build_dir(dbw, top, set(excl), top)
n_rm = self._drop_lost(dbw[0], top)