Serviio Update Parameter like Plex/XBMC in AMC

All your suggestions, requests and ideas for future development
Post Reply
b2un0
Posts: 10
Joined: 09 Jun 2014, 10:41

Serviio Update Parameter like Plex/XBMC in AMC

Post 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
Last edited by b2un0 on 26 Apr 2016, 11:43, edited 1 time in total.
User avatar
rednoah
The Source
Posts: 19137
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Serviio Update Parameter like Plex/XBMC

Post by rednoah »

Since you already have a curl command, why not use --def exec to have FileBot AMC make that call after processing?
:idea: Please read the FAQ and How to Request Help.
b2un0
Posts: 10
Joined: 09 Jun 2014, 10:41

Re: Serviio Update Parameter like Plex/XBMC in AMC

Post 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 :)
User avatar
rednoah
The Source
Posts: 19137
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Serviio Update Parameter like Plex/XBMC in AMC

Post 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.
:idea: Please read the FAQ and How to Request Help.
Post Reply