HOW TO REFRESH ONLINE FOLDERS ON DEMAND FROM THE CLIENT
Please read __THE NEED FOR REFRESH ON DEMAND__ article for the background.
The ability to implement “Force Refresh” feed items in the Refresh.groovy is based on 6 prerequisite one time implementations. These steps have been explained in detail in the link provided above.
Below are only the steps that differ in linux.
1) Install curl (libcurl) with ssl enabled using apt-get/yum/rpm based on the Unix/Linux flavor you are using, if its not already installed.
2) Same as in the article linked above.
3) Same as in the article linked above.
4) In your linux console/ssh, logged in as root, go to $SERVIIO_HOME/bin/ directory. Look for the following files: serviio.sh and serviio-console.sh. In both files, search for JAVA_OPTS=.
Note: There are other options within double-quotes after JAVA_OPTS= as well. Do not change any other option, just add the above option.
5) Download the attached file ffmpeg-wrapper.sh and save/overwrite it in $SERVIIO_HOME/bin/ Make it executable. Open it is a text editor and save it with linux line termination (or use dos2Unix).
6) Same as in the article linked above.
Restart Serviio and ENJOY!!!
ffmpeg-wrapper.sh for Linux/Synology: ffmpeg-wrapper.zip
Here is a modified version of this script in which a few things have been fixed ffmpeg-wrapperv2.zip.
Note: Most the code of ffmpeg-wrapper.sh is from the Serviio for Synology available from http://pcloadletter.co.uk. I have only made a few changes to enable support for Refresh.groovy.
Note: It would appear that if the contentUrl that the plugin returns contains special characters like & then the ffmpeg-wrapper.sh does not work properly. The shell consumes the & characters. The solution is to have the plugin return a contentUrl inclosed by single quotes ('). The contentUrl is then passed to the ffmpeg-wrapper.sh inside the single quotes and the & are not destroyed. However, adding the single quotes around the contentUrl appears to break plugins when they are not using ffmpeg-wrapper.sh - ttguy