webgrabplus: update and add pre/post-processing

This commit is contained in:
jc 2016-08-09 06:14:23 +02:00
parent bb46c69f82
commit 3a4386a6f7
3 changed files with 22 additions and 2 deletions

View File

@ -1,3 +1,8 @@
8.0.102
- Upgrade WebGrab+Plus to 56.29.pre
- Upgrade siteini.pack to 20160807
- Call user defined pre/post processing
8.0.101
- Upgrade WebGrab+Plus to 56.28.pre
- Upgrade siteini.pack to 20160729

View File

@ -1,6 +1,6 @@
PKG_NAME="webgrabplus"
PKG_VERSION="56.28pre-20160729"
PKG_REV="101"
PKG_VERSION="56.29pre-20160807"
PKG_REV="102"
PKG_ARCH="arm x86_64"
PKG_LICENSE="prop."
PKG_SITE="http://www.webgrabplus.com/"

View File

@ -3,6 +3,17 @@
. /etc/profile
oe_setup_addon service.webgrabplus
wgp_user () {
echo "User defined $1"
if [ -f "$2" ]
then
echo "Calling user defined $1 script $2"
sh "$2"
else
echo "Nothing to do"
fi
}
mkdir -p "$ADDON_HOME"
cd "$ADDON_HOME"
@ -22,9 +33,13 @@ then
cp -r "$ADDON_DIR/config/siteini.pack" .
fi
wgp_user "pre-processing" "$ADDON_HOME/before.sh"
mono $ADDON_DIR/WebGrab+Plus/WebGrab+Plus.exe
cp guide_wgp.xml guide.xml
mono $ADDON_DIR/WebGrab+Plus/xmltv_time_correct.exe guide_wgp.xml guide.xml < /dev/zero
mono $ADDON_DIR/WebGrab+Plus/WG2MP.exe guide.xml mediaportal.xml
wgp_user "post-processing" "$ADDON_HOME/after.sh"