searches mp3 directory for new music and removes old music from the db
searches mp3 directory for new music and removes old music from the db
_path_ is an optional argument that maybe a particular directory or
_path_ is an optional argument that maybe a particular directory or
song/file to update.
song/file to update.
returned:
returned:
updating_db: <int job id>
updating_db: <int job id>
...
@@ -257,7 +257,7 @@ update <string path>
...
@@ -257,7 +257,7 @@ update <string path>
in status, while the requested update is happening
in status, while the requested update is happening
increments playlist version by 1
increments playlist version by 1
NOTE: To update a number of paths/songs at once, use command_list,
NOTE: To update a number of paths/songs at once, use command_list,
it will be much more faster/efficient. Also, if you use a
it will be much more faster/efficient. Also, if you use a
command_list for updating, only one update_db job id will be returned
command_list for updating, only one update_db job id will be returned
per sequence of updates.
per sequence of updates.
...
@@ -284,5 +284,6 @@ command_list_end
...
@@ -284,5 +284,6 @@ command_list_end
It does not execute any commands until the list has ended. The return
It does not execute any commands until the list has ended. The return
value is whatever the return for a list of commands is. On success
value is whatever the return for a list of commands is. On success
for all commands, OK is returned. If a command fails, no more commands
for all commands, OK is returned. If a command fails, no more commands
are executed and the appropriate ACK error is returned. If "command_list_ok_begin is used", "list_OK\n" is returned for each successful command executed
are executed and the appropriate ACK error is returned. If
in the command list.
"command_list_ok_begin is used", "list_OK\n" is returned for each