PDA

View Full Version : Remove EPG



abu baniaz
16-08-16, 20:13
On OpenVix image, you can remove old EPG data by doing the following:

Menu / Setup / System / EPG / Load-Save-Delete / Delete EPG

For some people this does not work, especially if they have mount issues. This plugin/script is to stop Enigma2, find all instances of EPG.dat and Crossepg folder and delete it/them. Thanks to Birdman for the assistance
You will have to configure CrossEPG downloader again.

***DO NOT OPERATE WHEN RECORDINGS ARE TAKING PLACE***

Please uninstall after using it to prevent accidental operation. Ideally I would have liked to add a prompt before executing.

There is a plugin called system tools which does similar thing but not as thoroughly.


For those interested, contents of script is:


#!/bin/sh
# Find all relevant mount-points and delet epg
#
get_mounts() {
mount | awk '$5 ~ "vfat|^ext" {print $3}'
}

echo "Receiver will stop, delete EPG and restart automatically"
sleep 3
init 4
sleep 10
rm -f /etc/enigma2/epg.dat
for mp in `get_mounts`; do
rm -f ${mp}/epg.dat
rm -rf ${mp}/crossepg
done
init 3



To install:
Transfer to /tmp
Blue > Vix > Install local extension > Select/highlight the ipk > Green button