mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-24 19:46:19 -05:00
[scan/library] Media rating sync (#1681)
Automatically read/write ratings to files in the library, if options read_rating/ write_rating are enabled. Also adds a max_rating so the user can set the rating scale. Doesn't sync automatic rating updates, because that could lead to whole-playlist file rewriting. Closes #1678 --------- Co-authored-by: whatdoineed2do/Ray <whatdoineed2do@nospam.gmail.com> Co-authored-by: ejurgensen <espenjurgensen@gmail.com>
This commit is contained in:
17
src/db.h
17
src/db.h
@@ -685,6 +685,9 @@ db_file_ping_bymatch(const char *path, int isdir);
|
||||
char *
|
||||
db_file_path_byid(int id);
|
||||
|
||||
bool
|
||||
db_file_id_exists(int id);
|
||||
|
||||
int
|
||||
db_file_id_bypath(const char *path);
|
||||
|
||||
@@ -695,7 +698,10 @@ int
|
||||
db_file_id_byurl(const char *url);
|
||||
|
||||
int
|
||||
db_file_id_by_virtualpath_match(const char *path);
|
||||
db_file_id_byvirtualpath(const char *virtual_path);
|
||||
|
||||
int
|
||||
db_file_id_byvirtualpath_match(const char *virtual_path);
|
||||
|
||||
struct media_file_info *
|
||||
db_file_fetch_byid(int id);
|
||||
@@ -712,15 +718,6 @@ db_file_update(struct media_file_info *mfi);
|
||||
void
|
||||
db_file_seek_update(int id, uint32_t seek);
|
||||
|
||||
int
|
||||
db_file_rating_update_byid(uint32_t id, uint32_t rating);
|
||||
|
||||
int
|
||||
db_file_usermark_update_byid(uint32_t id, uint32_t usermark);
|
||||
|
||||
int
|
||||
db_file_rating_update_byvirtualpath(const char *virtual_path, uint32_t rating);
|
||||
|
||||
void
|
||||
db_file_delete_bypath(const char *path);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user