mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
Merge pull request #617 from awiouy/epg2storage
webgrabplus: add user defined pre/post processing
This commit is contained in:
commit
f539993014
@ -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
|
8.0.101
|
||||||
- Upgrade WebGrab+Plus to 56.28.pre
|
- Upgrade WebGrab+Plus to 56.28.pre
|
||||||
- Upgrade siteini.pack to 20160729
|
- Upgrade siteini.pack to 20160729
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
PKG_NAME="webgrabplus"
|
PKG_NAME="webgrabplus"
|
||||||
PKG_VERSION="56.28pre-20160729"
|
PKG_VERSION="56.29pre-20160807"
|
||||||
PKG_REV="101"
|
PKG_REV="102"
|
||||||
PKG_ARCH="arm x86_64"
|
PKG_ARCH="arm x86_64"
|
||||||
PKG_LICENSE="prop."
|
PKG_LICENSE="prop."
|
||||||
PKG_SITE="http://www.webgrabplus.com/"
|
PKG_SITE="http://www.webgrabplus.com/"
|
||||||
|
@ -3,6 +3,17 @@
|
|||||||
. /etc/profile
|
. /etc/profile
|
||||||
oe_setup_addon service.webgrabplus
|
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"
|
mkdir -p "$ADDON_HOME"
|
||||||
cd "$ADDON_HOME"
|
cd "$ADDON_HOME"
|
||||||
|
|
||||||
@ -22,9 +33,13 @@ then
|
|||||||
cp -r "$ADDON_DIR/config/siteini.pack" .
|
cp -r "$ADDON_DIR/config/siteini.pack" .
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
wgp_user "pre-processing" "$ADDON_HOME/before.sh"
|
||||||
|
|
||||||
mono $ADDON_DIR/WebGrab+Plus/WebGrab+Plus.exe
|
mono $ADDON_DIR/WebGrab+Plus/WebGrab+Plus.exe
|
||||||
|
|
||||||
cp guide_wgp.xml guide.xml
|
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/xmltv_time_correct.exe guide_wgp.xml guide.xml < /dev/zero
|
||||||
|
|
||||||
mono $ADDON_DIR/WebGrab+Plus/WG2MP.exe guide.xml mediaportal.xml
|
mono $ADDON_DIR/WebGrab+Plus/WG2MP.exe guide.xml mediaportal.xml
|
||||||
|
|
||||||
|
wgp_user "post-processing" "$ADDON_HOME/after.sh"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user