X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/8a886602880a1a0b65de4e062d4be178dee4d181..ba32e50c1894049659544cd2cbb0f7ab06981add:/server/rescan.c?ds=inline diff --git a/server/rescan.c b/server/rescan.c index 792bdf5..8f2419c 100644 --- a/server/rescan.c +++ b/server/rescan.c @@ -233,8 +233,11 @@ static int recheck_track_tid(struct recheck_state *cs, return 0; } } - /* see if the track has evaporated */ - if(check(c->module, c->root, path) == 0) { + /* see if the track has evaporated or no longer has a player */ + for(n = 0; (n < config->player.n + && fnmatch(config->player.s[n].s[0], t->track, 0) != 0); ++n) + ; + if(n >= config->player.n || check(c->module, c->root, path) == 0) { D(("obsoleting %s", t->track)); if((err = trackdb_obsolete(t->track, tid))) return err;