chiark / gitweb /
disorder-rescan now obsoletes tracks that belong to no collection;
authorrjk@greenend.org.uk <>
Sun, 15 Jul 2007 16:43:59 +0000 (17:43 +0100)
committerrjk@greenend.org.uk <>
Sun, 15 Jul 2007 16:43:59 +0000 (17:43 +0100)
commitd1694464b875e336ac335741596b15361929f630
tree2a01cde4c20aa3fb758cf63fed6f077cc21faaf0
parent622cdeda08d4d54f2d89c26a27129205e3521eea
disorder-rescan now obsoletes tracks that belong to no collection;
handy when you remove some collection.  The code should be relatively
robust against such tracks but they'll annoy the random track picker.

trackdb_rescan() is thus modified to be able to return all tracks.

find_track_collection() maps a track to its collection, or 0 if it
doesn't have one.
lib/trackname.c
lib/trackname.h
server/rescan.c
server/trackdb-int.h
server/trackdb.c