aboutsummaryrefslogtreecommitdiffstats
path: root/src/directory.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-11-02 23:44:33 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-11-02 23:44:33 +0000
commitf468aba16e00aa003b28bd24a79c14cd07eefe3f (patch)
tree80646af809b96d90938b1fe6ab87abb01e2170c9 /src/directory.c
parent78c5d884d2c687034d18e4cb77c7c116e1c97b84 (diff)
downloadmpd-f468aba16e00aa003b28bd24a79c14cd07eefe3f.tar.gz
mpd-f468aba16e00aa003b28bd24a79c14cd07eefe3f.tar.xz
mpd-f468aba16e00aa003b28bd24a79c14cd07eefe3f.zip
new command "addid", this is the same as "add" command, except it also returns the songid of the added song. Note that "addid" does not work on directories
git-svn-id: https://svn.musicpd.org/mpd/trunk@2487 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/directory.c')
-rw-r--r--src/directory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/directory.c b/src/directory.c
index 75b50720c..5caeb311d 100644
--- a/src/directory.c
+++ b/src/directory.c
@@ -1289,7 +1289,7 @@ int printAllIn(FILE * fp, char * name) {
}
int directoryAddSongToPlaylist(FILE * fp, Song * song, void * data) {
- return addSongToPlaylist(fp,song);
+ return addSongToPlaylist(fp, song, 0);
}
int addAllIn(FILE * fp, char * name) {