This commit is contained in:
ed 2021-03-01 03:15:41 +01:00
parent 8441206e26
commit 46e10b0e9f
2 changed files with 3 additions and 3 deletions

View file

@ -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*`

View file

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