FAQ  •  Register  •  Login

Library refresh via API

<<

mackowiakp

Serviio lover

Posts: 71

Joined: Tue Feb 11, 2014 8:31 pm

Post Thu May 19, 2016 7:13 am

Library refresh via API

I used for several years script for automatic library refresh, when new file was discover by inotify on my Linux Mageia 5 based server. Serviio server ver 1.6.1
Now it does not work, because Serviio API rapports me an error. Something changed in API call format? As I wrote, it worked for me earlier.

Look for the result of API call:

  Code:
[root@mackowiak Pobrane]# curl -sS -X POST -H "Content-Type: application/xml" -d "<action><name>forceLibraryRefresh</name></action>" http://localhost:23423/rest/action
<?xml version="1.0" encoding="UTF-8" ?>
<result>
  <errorCode>0</errorCode>


Does I have to chaange syntax of this call? Any idea?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Fri May 20, 2016 10:39 pm

Re: Library refresh via API

It's not changed... and this is not an error, it's an OK response
<<

mackowiakp

Serviio lover

Posts: 71

Joined: Tue Feb 11, 2014 8:31 pm

Post Sat May 21, 2016 5:53 am

[SOLVED]Re: Library refresh via API

I solved problem. There is different response from query:

  Code:
curl -sS -X GET -H "Content-Type: application/xml" http://localhost:23423/rest/library-status


I use it in my script and the response is different from previous version. For sure.
I made necessary changes and now the script works OK.

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 40 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.