From 46e10b0e9fb8eef525c799da4e6448e0dba11ba5 Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 1 Mar 2021 03:15:41 +0100 Subject: [PATCH] yab --- README.md | 2 +- copyparty/up2k.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f66209dd..2836247f 100644 --- a/README.md +++ b/README.md @@ -95,7 +95,7 @@ through arguments: * `-e2ts` scans for tags in all files that don't have tags yet * `-e2tsr` deletes all existing tags, so a full reindex -in addition to `d2d` and `d2t`, the same arguments can be set as volume flags: +the same arguments can be set as volume flags, in addition to `d2d` and `d2t` for disabling: * `-v ~/music::ce2dsa:ce2tsr` does a full reindex of everything on startup * `-v ~/music::cd2d` disables **all** indexing, even if any `-e2*` are on * `-v ~/music::cd2t` disables all `-e2t*` (tags), does not affect `-e2d*` diff --git a/copyparty/up2k.py b/copyparty/up2k.py index 715cdb38..2d69a5c2 100644 --- a/copyparty/up2k.py +++ b/copyparty/up2k.py @@ -386,7 +386,7 @@ class Up2k(object): up_q = "select w from up where substr(w,1,16) = ?" for (w,) in cur.execute("select w from mt"): if not c2.execute(up_q, (w,)).fetchone(): - drops.append(w) + drops.append(w[:16]) c2.close() if drops: @@ -394,7 +394,7 @@ class Up2k(object): self.log(msg.format(len(drops))) n_rm += len(drops) for w in drops: - cur.execute("delete from up where rowid = ?", (w,)) + cur.execute("delete from mt where w = ?", (w,)) # bail if a volume flag disables indexing if "d2t" in flags or "d2d" in flags: