Serviio notification support

I use Serviio as my DLNA client. Serviio scans folders on a schedule to see if new video files are available to add to its database. Because of this, when NzbDrone finishes processing a video file, it can take up to 5 minutes for it to show up on any of the DLNA clients in my house.

Serviio does have an API and can be issued a command to tell it to refresh its database immediately.

It would be great if there was an option in Connections for a Serviio server that could issue this API command on download.

Do you happen to know the API call drone would need to make? Quick look at: http://docs.serviio.apiary.io/ shows it may be searchForUpdates

I have an .asp script that does it.

I just post

forceLibraryRefresh

to the following URL

http://192.168.0.10:23423/rest/action

with Content-Type: text/xml in the header

My .asp script is below.

`
<%@ Language=vbScript%>
<%
Option Explicit

Dim data, httpRequest, postResponse

data = "<action><name>forceLibraryRefresh</name></action>"

Set httpRequest = Server.CreateObject("MSXML2.ServerXMLHTTP")
httpRequest.Open "POST", "http://192.168.0.10:23423/rest/action", False
httpRequest.SetRequestHeader "Content-Type", "text/xml"
httpRequest.Send data

postResponse = httpRequest.ResponseText

Response.Write postResponse
%>
`

I have currently hobbled together a solution by partially emulating the XBMC api and using an XBMC notification to trigger the call above.

Seems easy enough. Thanks for pointing out the correct action.