mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
yab
This commit is contained in:
parent
8441206e26
commit
46e10b0e9f
|
@ -95,7 +95,7 @@ through arguments:
|
||||||
* `-e2ts` scans for tags in all files that don't have tags yet
|
* `-e2ts` scans for tags in all files that don't have tags yet
|
||||||
* `-e2tsr` deletes all existing tags, so a full reindex
|
* `-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::ce2dsa:ce2tsr` does a full reindex of everything on startup
|
||||||
* `-v ~/music::cd2d` disables **all** indexing, even if any `-e2*` are on
|
* `-v ~/music::cd2d` disables **all** indexing, even if any `-e2*` are on
|
||||||
* `-v ~/music::cd2t` disables all `-e2t*` (tags), does not affect `-e2d*`
|
* `-v ~/music::cd2t` disables all `-e2t*` (tags), does not affect `-e2d*`
|
||||||
|
|
|
@ -386,7 +386,7 @@ class Up2k(object):
|
||||||
up_q = "select w from up where substr(w,1,16) = ?"
|
up_q = "select w from up where substr(w,1,16) = ?"
|
||||||
for (w,) in cur.execute("select w from mt"):
|
for (w,) in cur.execute("select w from mt"):
|
||||||
if not c2.execute(up_q, (w,)).fetchone():
|
if not c2.execute(up_q, (w,)).fetchone():
|
||||||
drops.append(w)
|
drops.append(w[:16])
|
||||||
c2.close()
|
c2.close()
|
||||||
|
|
||||||
if drops:
|
if drops:
|
||||||
|
@ -394,7 +394,7 @@ class Up2k(object):
|
||||||
self.log(msg.format(len(drops)))
|
self.log(msg.format(len(drops)))
|
||||||
n_rm += len(drops)
|
n_rm += len(drops)
|
||||||
for w in 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
|
# bail if a volume flag disables indexing
|
||||||
if "d2t" in flags or "d2d" in flags:
|
if "d2t" in flags or "d2d" in flags:
|
||||||
|
|
Loading…
Reference in a new issue