PLEASE NOTE THAT THIS VERSION OF EASYEPG WILL NO LONGER BE MAINTAINED.
WebGrab++ alternative :)
This tool provides high-quality EPG data from different IPTV/OTT sources.
You are welcome to test the script on your machine.
All scripts provided by this project are licensed under GPL 3.0. This includes a limitation of liability. The license also states that it does not provide any warranty.
If you like my script, please - thank you! :-)
Please run the commands below to setup the script. "Sudo" is not required on user "root".
# Install all recommended applications to setup the epg environment completely:
sudo apt-get install cron dialog curl wget libxml2-utils perl nano perl-doc jq php php-curl git xml-twig-tools unzip liblocal-lib-perl cpanminus build-essential inetutils-ping
# Install CPAN and the required modules to parse JSON files
sudo cpan App:cpanminus
sudo cpanm install JSON
sudo cpanm install XML::Rules
sudo cpanm install XML::DOM
sudo cpanm install Data::Dumper
sudo cpanm install Time::Piece
sudo cpanm install Time::Seconds
sudo cpanm install DateTime
sudo cpanm install DateTime::Format::DateParse
sudo cpanm install utf8
sudo cpanm install DateTime::Format::Strptime
# Create any directory in your desired location, e.g.:
mkdir ~/easyepg
# Download the .zip file and extract the files into your folder:
wget https://github.com/sunsettrack4/easyepg/archive/refs/heads/master.zip
# Unzip the file:
unzip easyepg-master.zip
# Move all script files to the created folder
mv ~/easyepg-master/* ~/easyepg/
# Set system-wide permissions to the folder and its related files
sudo chmod 0777 ~/easyepg
sudo chmod 0777 ~/easyepg/*
# Run the main script from your script folder to enter the setup screen in terminal
cd ~/easyepg
bash epg.sh
. . .
Please hit the CANCEL button to exit the dialog menu of the script.
. . .
If you choose a provider to grab EPG data, you are able to select the channels you want to retrieve. Afterwards, the following options are available:
. . .
One of the most important features is the modification of XML files. This option allows you to combine channels from multiple sources, and to run additional scripts before/after final XML file creation.
IMPORTANT: The grabbers of the providers defined in "GRABBER SETTINGS" must run/update the environment successfully to select new channels!
. . .
You are able to import XML files from external sources (any files on your local hard drive, or a public internet source). Please select the option "EXTERNAL" in menu "ADD GRABBER INSTANCE" to enter the external XML resource.
# Enter this command to enter the settings of crontab
crontab -e
# Setup to run the script daily at 3 AM
0 3 * * * cd ~/easyepg && bash epg.sh
# Enter this command to enter the admin settings of crontab ("sudo" not required for user "root")
sudo crontab -e
# Setup to update the EPG twice (recommended to update the EPG schedule times correcty)
0 6 * * * cat /home/<user>/easyepg/xml/<file> | socat - UNIX-CONNECT:/home/hts/.hts/tvheadend/epggrab/xmltv.sock
5 6 * * * cat /home/<user>/easyepg/xml/<file> | socat - UNIX-CONNECT:/home/hts/.hts/tvheadend/epggrab/xmltv.sock
# enter your PC name instead of "<user>"
# enter the correct file name instead of "<file>"
. . .
Contact me for support via email: sunsettrack4@gmail.com
FAQ section to follow :-)