diff --git a/src/filescanner.c b/src/filescanner.c index d8e93e2d..daf9b3fa 100644 --- a/src/filescanner.c +++ b/src/filescanner.c @@ -626,7 +626,7 @@ filescanner_process_media(char *path, time_t mtime, off_t size, int type, struct mfi = external_mfi; if (stamp) - mfi->id = db_file_id_bypath(path); + mfi->id = id; mfi->fname = strdup(filename); if (!mfi->fname)