diff --git a/src/db.c b/src/db.c index 94b2991f..586b3349 100644 --- a/src/db.c +++ b/src/db.c @@ -2508,7 +2508,10 @@ db_file_rating_update_byid(uint32_t id, uint32_t rating) query = sqlite3_mprintf(Q_TMPL, rating, id); - ret = db_query_run(query, 1, LISTENER_RATING); + ret = db_query_run(query, 1, 0); + + if (ret == 0) + listener_notify(LISTENER_RATING); return ((ret < 0) ? -1 : sqlite3_changes(hdl)); #undef Q_TMPL @@ -2523,7 +2526,10 @@ db_file_rating_update_byvirtualpath(const char *virtual_path, uint32_t rating) query = sqlite3_mprintf(Q_TMPL, rating, virtual_path); - ret = db_query_run(query, 1, LISTENER_RATING); + ret = db_query_run(query, 1, 0); + + if (ret == 0) + listener_notify(LISTENER_RATING); return ((ret < 0) ? -1 : sqlite3_changes(hdl)); #undef Q_TMPL