mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-24 05:03:17 -05:00
Some more daap cache triggers
This commit is contained in:
parent
76231cac0f
commit
eac718ea0f
6
src/db.c
6
src/db.c
@ -1916,6 +1916,8 @@ db_file_ping(int id)
|
||||
query = sqlite3_mprintf(Q_TMPL, (int64_t)time(NULL), id);
|
||||
|
||||
db_query_run(query, 1);
|
||||
|
||||
daapcache_trigger();
|
||||
#undef Q_TMPL
|
||||
}
|
||||
|
||||
@ -1932,6 +1934,8 @@ db_file_ping_bymatch(char *path, int isdir)
|
||||
query = sqlite3_mprintf(Q_TMPL_NODIR, (int64_t)time(NULL), path);
|
||||
|
||||
db_query_run(query, 1);
|
||||
|
||||
daapcache_trigger();
|
||||
#undef Q_TMPL_DIR
|
||||
#undef Q_TMPL_NODIR
|
||||
}
|
||||
@ -2427,6 +2431,8 @@ db_file_add(struct media_file_info *mfi)
|
||||
|
||||
sqlite3_free(query);
|
||||
|
||||
daapcache_trigger();
|
||||
|
||||
return 0;
|
||||
|
||||
#undef Q_TMPL
|
||||
|
Loading…
x
Reference in New Issue
Block a user