add smart-playlist evaluation to mp3 adder. Arguably deserves to go in db_add

This commit is contained in:
Ron Pedde 2003-12-05 05:59:51 +00:00
parent 2fde2c1250
commit 9eb513bfa8
1 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,7 @@
#include "db-memory.h"
#include "err.h"
#include "mp3-scanner.h"
#include "playlist.h"
/*
* Typedefs
@ -352,6 +353,7 @@ int scan_foreground(char *path) {
if(!scan_gettags(mp3file.path,&mp3file) &&
!scan_getfileinfo(mp3file.path,&mp3file)) {
db_add(&mp3file);
pl_eval(&mp3file);
} else {
DPRINTF(ERR_INFO,"Skipping %s\n",de.d_name);
}