-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpicons.sh
More file actions
executable file
·31 lines (24 loc) · 779 Bytes
/
picons.sh
File metadata and controls
executable file
·31 lines (24 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash -e
echo "Setting up channel icons for Kodi VDR VNSI plugin ..."
SETUPROOT=$(pushd $(dirname $0) > /dev/null; pwd -P)
PICONS_SOURCE_DIR=$SETUPROOT/source
PICONS_OUT_DIR=$SETUPROOT/vnsi
# Get repo
if [ ! -d "$PICONS_SOURCE_DIR" ]
then
git clone https://github.com/xxthunder/picons.git $PICONS_SOURCE_DIR
fi
pushd $PICONS_SOURCE_DIR
git reset --hard HEAD
git pull
rm -rf build-input/* build-output/*
echo '256x256;226x226;light;transparent' > build-input/backgrounds.conf
cp -fv /var/lib/vdr/channels.conf build-input/
./1-build-servicelist.sh srp
./2-build-picons.sh srp
rm -rf $PICONS_OUT_DIR
mkdir -p $PICONS_OUT_DIR
tar xvf build-output/binaries-srp/*.symlink.tar.xz --directory $PICONS_OUT_DIR
mv $PICONS_OUT_DIR/srp*/* $PICONS_OUT_DIR/
popd
echo "Done."