Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Playlist update?
10-10-2019, 17:19
Post: #1
Playlist update?
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
Find all posts by this user
Quote this message in a reply
10-10-2019, 17:38
Post: #2
RE: Playlist update?
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.
Find all posts by this user
Quote this message in a reply
10-10-2019, 18:29
Post: #3
RE: Playlist update?
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
Find all posts by this user
Quote this message in a reply
10-10-2019, 19:30
Post: #4
RE: Playlist update?
There is a web API to do this. This requires an HTTP POST, not GET. See this section for details.
Find all posts by this user
Quote this message in a reply
10-10-2019, 20:35
Post: #5
RE: Playlist update?
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
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)