Page 1 of 1

Serviio Update Parameter like Plex/XBMC in AMC

Posted: 26 Apr 2016, 11:37
by b2un0
Hi,

is it possible to add a Serviio Hostname for trigger library updates or can you add this in the future?

i'm currently using this small code

Code: Select all

curl -s --request POST --header "Content-Type: application/xml" --data-binary "<action><name>forceLibraryRefresh</name></action>" 'http://localhost:23423/rest/action'


Doku: http://docs.serviio.apiary.io/#reference/0/action
Serviio: http://serviio.org/

i think this is really fast implemented and if i search in this forum for "serviio" i found some threads where we can see much users use serviio too :)

also here is already a request: viewtopic.php?p=3437#p3437

Re: Serviio Update Parameter like Plex/XBMC

Posted: 26 Apr 2016, 11:41
by rednoah
Since you already have a curl command, why not use --def exec to have FileBot AMC make that call after processing?

Re: Serviio Update Parameter like Plex/XBMC in AMC

Posted: 26 Apr 2016, 11:45
by b2un0
i'm using filebot in two ways, triggerd from a pyLoad hook: https://github.com/Gutz-Pilz/pyLoad-stu ... FileBot.py

and a manually script called "filebot-manually" on my debian NAS, so a AMC Parameter would be nice :)

Re: Serviio Update Parameter like Plex/XBMC in AMC

Posted: 26 Apr 2016, 11:55
by rednoah
Does that make a difference? It's copy and paste either way.

Granted, this would be nicer:

Code: Select all

--def serviio=localhost
than this:

Code: Select all

--def "exec=curl -s --request POST --header 'Content-Type: application/xml' --data-binary '<action><name>forceLibraryRefresh</name></action>' http://localhost:23423/rest/action"
(I recommend refactoring constant options into @files though)

It's easy for me to add support. But it's easy for you to add support yourself as well (and any other unsupported service for that matter) using the --def exec option.