mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-14 00:10:10 -04:00
make full rescan rescan playlists as well as songs
This commit is contained in:
parent
d64fe731eb
commit
53510607f1
@ -417,7 +417,13 @@ int db_sql_deinit(void) {
|
|||||||
* force a rescan
|
* force a rescan
|
||||||
*/
|
*/
|
||||||
int db_sql_force_rescan(char **pe) {
|
int db_sql_force_rescan(char **pe) {
|
||||||
|
int result;
|
||||||
|
result = db_sql_exec_fn(pe,E_LOG,"update playlists set db_timestamp=0");
|
||||||
|
if(result != DB_E_SUCCESS)
|
||||||
|
return result;
|
||||||
|
|
||||||
return db_sql_exec_fn(pe,E_LOG,"update songs set force_update=1");
|
return db_sql_exec_fn(pe,E_LOG,"update songs set force_update=1");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user