X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/f9635e06947ec6bc61c7977e7a3f9dba2c43d784..f0c20432f8c9dffd049c785f21cc85d98ff628fd:/server/rescan.c diff --git a/server/rescan.c b/server/rescan.c index b9be72d..b878929 100644 --- a/server/rescan.c +++ b/server/rescan.c @@ -152,10 +152,12 @@ static void rescan_collection(const struct collection *c) { error(0, "cannot convert track path to UTF-8: %s", path); continue; } - /* We use NFC track names */ - if(!(track = utf8_compose_canon(track, strlen(track), 0))) { - error(0, "cannot convert track path to NFC: %s", path); - continue; + if(config->dbversion > 1) { + /* We use NFC track names */ + if(!(track = utf8_compose_canon(track, strlen(track), 0))) { + error(0, "cannot convert track path to NFC: %s", path); + continue; + } } D(("track %s", track)); /* only tracks with a known player are admitted */ @@ -359,8 +361,8 @@ int main(int argc, char **argv) { xsigaction(SIGTERM, &sa, 0); xsigaction(SIGINT, &sa, 0); info("started"); - trackdb_init(0); - trackdb_open(); + trackdb_init(TRACKDB_NO_RECOVER); + trackdb_open(TRACKDB_NO_UPGRADE); if(optind == argc) { /* Rescan all collections */ do_all(rescan_collection);