mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-26 04:26:14 -05:00
add rescan/full rescan methods to xml-rpc for ticket #121
This commit is contained in:
@@ -512,6 +512,11 @@ int main(int argc, char *argv[]) {
|
||||
DPRINTF(E_LOG,L_MAIN|L_DB|L_SCAN,"Rescanning database\n");
|
||||
|
||||
if(conf_get_array("general","mp3_dir",&mp3_dir_array)) {
|
||||
if(config.full_reload) {
|
||||
config.full_reload=0;
|
||||
db_force_rescan(NULL);
|
||||
}
|
||||
|
||||
if(scan_init(mp3_dir_array)) {
|
||||
DPRINTF(E_LOG,L_MAIN|L_DB|L_SCAN,"Error rescanning... bad path?\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user