MinimServer Forum
Playlist update? - Printable Version

+- MinimServer Forum (https://forum.minimserver.com)
+-- Forum: MinimServer (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: Playlist update? (/showthread.php?tid=5402)



Playlist update? - pahenning - 10-10-2019 17:19

I am one of the developers of the German home automation software FHEM (see http://www.fhem.de, 20.000 registered users in the forum). We have a nice module in the beta stadium that creates playlists in the m3u format, and writes them to the MinimServer music directory.

Adding a file to the playlist by pressing a button on a wall mounted tablet then of course re-writes the playlist file. However, an audio system accessing the MinimServer does not get the new playlist, because the old file is apparently cached by the MinimServer.

With other music servers (like miniDLNA) one may use a trick, e.g. by first deleting the old playlist file and then adding a new one. This does _not_ work with MinimServer.

Question therefore: is there a similar trick to get the MinimServer to read a new playlist file?

Regards

pah


RE: Playlist update? - simoncn - 10-10-2019 17:38

MinimServer reads playlists when it scans the library, so the user needs to do a MinimServer rescan to see the new contents of the playlist. This rescan is a manual operation and it isn't possible to rescan an individual file.


RE: Playlist update? - pahenning - 10-10-2019 18:29

OK. Is there a REST command for starting a rescan (i.e. a single parametrized URL) which starts the rescan? Or does one have to submit the HTML form?

Regards

pah


RE: Playlist update? - simoncn - 10-10-2019 19:30

There is a web API to do this. This requires an HTTP POST, not GET. See this section for details.


RE: Playlist update? - pahenning - 10-10-2019 20:35

Thank you, works. We have a nice remote control for the MinimServer then, with GUI.

I will post a link here when I have a complete description.

Regards

pah