Page 1 of 1

Library refresh from windows command line

PostPosted: Sat Mar 15, 2014 9:19 pm
by katates
Hey guys, I don't want Serviio to refresh library automatically.

I want to this manually from command line.

I want to refresh library after uTorrent download finishes vb.

How can I refresh library from windows command line?

Re: Library refresh from windows command line

PostPosted: Sun Mar 16, 2014 4:30 am
by DenyAll
There is no command line method of doing this afaik. You could perhaps write a small program to post the instruction via the Serviio API (a knowledge of programming is required, see http://docs.serviio.apiary.io/). Perhaps look at curl to do this (I have never used curl but you should be able to use this from what I understand) - however I'd question whether manually running a script or command line is any more efficient than manually pressing the "Force Refresh" button???.

If you are a windows user you can also use my tool here: viewtopic.php?f=17&t=12136. This tool will monitor your shared folders and when a file is added, deleted or changed, it will trigger a refresh of the Serviio library.

To use simply set "Use WinHelper to monitor shared folders" on (on the Tools tab). I use this tool extensively for both sleep management and library refreshing. I have set my Automatic Refresh in Serviio console to 1440 minutes (once a day, but alternatively you can turn it off) and use this tool to refresh my libraries.

Using this tool, when downloading torrents the file is automatically added to my library. Note that if your drive is remote (eg a NAS or other networked drive) this may not work (this is a limitation of the windows API but try it - all feedback welcome).