mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-01 02:03:45 -04:00
add smart-playlist evaluation to mp3 adder. Arguably deserves to go in db_add
This commit is contained in:
parent
2fde2c1250
commit
9eb513bfa8
@ -34,6 +34,7 @@
|
|||||||
#include "db-memory.h"
|
#include "db-memory.h"
|
||||||
#include "err.h"
|
#include "err.h"
|
||||||
#include "mp3-scanner.h"
|
#include "mp3-scanner.h"
|
||||||
|
#include "playlist.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Typedefs
|
* Typedefs
|
||||||
@ -352,6 +353,7 @@ int scan_foreground(char *path) {
|
|||||||
if(!scan_gettags(mp3file.path,&mp3file) &&
|
if(!scan_gettags(mp3file.path,&mp3file) &&
|
||||||
!scan_getfileinfo(mp3file.path,&mp3file)) {
|
!scan_getfileinfo(mp3file.path,&mp3file)) {
|
||||||
db_add(&mp3file);
|
db_add(&mp3file);
|
||||||
|
pl_eval(&mp3file);
|
||||||
} else {
|
} else {
|
||||||
DPRINTF(ERR_INFO,"Skipping %s\n",de.d_name);
|
DPRINTF(ERR_INFO,"Skipping %s\n",de.d_name);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user