From kPlaylist build 237 kPlaylist supports autoupdating of the search
database. This job can be done for example via lynx and cron. This
job is the same as you perform when you push the 'Update' button
in kPlaylist when you've logged in as a admin.
kPlaylist has by default disabled support for autoupdate via a variable
in the top of the script called $autoupdate. This is the default settings:
$autoupdate = 0;
$autoupdatehost = "127.0.0.1";
$autoupdateuser = "autooperate";
To enable autoupdating set $autoupdate = 1;
Now, you should try to run the update by opening a webbrowser and
entering the URL with the following parameters:
http://yoursite/playlist/index.php?upda ... utooperate
(Replace yoursite/playlist/index.php with the appropiate data
for your site.)
If the host you're trying to update from is equal to the one in
the $autoupdatehost variable, the update should start immediately once
you open the URL. If not, the autoupdate will let you know.
Once you're satisfied, you can make the autoupdate in a cron job, such
as this (all in one line):
0 * * * * /usr/bin/lynx -dump "http://yoursite/playlist/index.php?update=5000&user=autooperate"
This means, autoupdate once per hour and mail (if available) the summary to the default user.
You probably wonder what the 5000 parameter is? It's how many
microseconds (1.000.000 is one second.) kPlaylist will delay for each file it's read. 5000 is to sleep a 1/200 parts of second.
This is put in because the update tend to consume alot of resources. Set update=0 to disable for maximum speed and pain.