From f817cb0f4c07788a2c114590fd317c94c9a3958c Mon Sep 17 00:00:00 2001 From: Antti Ajanki Date: Wed, 25 Aug 2010 20:13:45 +0300 Subject: call a script after downloading finishes --- README.vdrplugin | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'README.vdrplugin') diff --git a/README.vdrplugin b/README.vdrplugin index 838a936..19c8b04 100644 --- a/README.vdrplugin +++ b/README.vdrplugin @@ -95,7 +95,8 @@ VDR plugin command line parameters path is the VDR video directory. -t dir, --templatedir=DIR Read video site templates from DIR (default /usr/local/share/webvi/templates) --c FILE, --conf=FILE Load settings from FILE +-c FILE, --conf=FILE Load settings from FILE +-p CMD, --postprocess=CMD Execute CMD after downloading Config file ----------- @@ -178,3 +179,15 @@ related videos that appear in Youtube navigate to the Youtube search, enter "VDR Linux" as search term and "Date added" as sorting criterion, execute the search, and create a timer on the search results page. + +Executing a script after downloading +------------------------------------ + +The option -p sets a script that is called for each downloaded file. +For example: vdr -P "webvideo -p /path/to/script.sh" + +The script will be called with a single argument: the name (including +the path) of the downloaded file. + +An example script for transcoding the downloaded files to Ogg format +is included in the source distribution in examples/transcode2ogg.sh. -- cgit v1.2.3