From dd6e8c0f77f3d990120e73dd933779228f14e092 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dra=C5=BEen=20Lu=C4=8Danin?= Date: Tue, 26 May 2015 18:46:08 +0200 Subject: [PATCH] docs: describe the library update steps --- docs/running.rst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/running.rst b/docs/running.rst index 2c7ced21..e329ccaa 100644 --- a/docs/running.rst +++ b/docs/running.rst @@ -13,6 +13,20 @@ When Mopidy says ``MPD server running at [127.0.0.1]:6600`` it's ready to accept connections by any MPD client. Check out our non-exhaustive :doc:`/clients/mpd` list to find recommended clients. +Updating the library +==================== + +To update the library, e.g. after audio files have changed, run:: + + mopidy local scan + +Afterwards, to refresh the library (which is for now only available +through the API) it is necessary to run:: + + curl -d '{"jsonrpc": "2.0", "id": 1, "method": "core.library.refresh"}' http://localhost:6680/mopidy/rpc + +This makes the changes in the library visible to the clients. + Stopping Mopidy ===============