Rename db_pl_add_item -> db_pl_add_item_bypath
For consistency with db_pl_add_item_byid & similar database functions.
This commit is contained in:
parent
a45f46f3eb
commit
04ce09e5be
2
src/db.c
2
src/db.c
|
@ -1755,7 +1755,7 @@ db_pl_add(char *title, char *path, int *id)
|
|||
}
|
||||
|
||||
int
|
||||
db_pl_add_item(int plid, char *path)
|
||||
db_pl_add_item_bypath(int plid, char *path)
|
||||
{
|
||||
#define Q_TMPL "INSERT INTO playlistitems (playlistid, filepath) VALUES (%d, '%q');"
|
||||
char *query;
|
||||
|
|
2
src/db.h
2
src/db.h
|
@ -279,7 +279,7 @@ int
|
|||
db_pl_add(char *title, char *path, int *id);
|
||||
|
||||
int
|
||||
db_pl_add_item(int plid, char *path);
|
||||
db_pl_add_item_bypath(int plid, char *path);
|
||||
|
||||
int
|
||||
db_pl_add_item_byid(int plid, int fileid);
|
||||
|
|
|
@ -189,7 +189,7 @@ scan_m3u_playlist(char *file)
|
|||
continue;
|
||||
}
|
||||
|
||||
ret = db_pl_add_item(pl_id, filename);
|
||||
ret = db_pl_add_item_bypath(pl_id, filename);
|
||||
if (ret < 0)
|
||||
DPRINTF(E_WARN, L_SCAN, "Could not add %s to playlist\n", filename);
|
||||
|
||||
|
|
Loading…
Reference in New Issue