Use these scripts to retrieve ZATTOO Live TV channels, channel logo images and EPG files. The created files can be processed by tvHeadend; the channels will be played back via Kodi etc. Additionally, you can watch Live TV and PVR recordings via VLC on Linux desktop PCs.
If you like my script, please - thank you! :-)
Please visit the tvHeadend project page to get more information.
Please run the commands below to setup the script. "Sudo" is not required on user "root".
# Install all recommended applications to setup the ztvh environment completely:
sudo apt-get install phantomjs uni2ascii libxml2-utils ffmpeg vlc socat iputils-ping crontab curl wget unzip perl perl-doc dialog
# Install CPAN and the required modules to parse JSON files
sudo cpan App:cpanminus
sudo cpanm install JSON
sudo cpanm install utf8
# Create a directory called "ztvh" in your home folder:
mkdir ~/ztvh
# Download the .zip file and extract the files into the "ztvh" folder:
wget https://github.com/sunsettrack4/zattoo_tvh/archive/v0.5.8.zip
# Unzip the file:
unzip v0.5.8.zip
# Move all script files to the created ztvh folder
mv ~/zattoo_tvh-0.5.8/* ~/ztvh/
# Set system-wide permissions to the folder and its related files
sudo chmod 0777 ~/ztvh
sudo chmod 0777 ~/ztvh/*
# Run the main script to enter the setup screen in terminal
bash ~/ztvh/ztvh.sh
Please hit the CANCEL button to save the current settings.
Please hit the CANCEL button to exit the dialog menu of the script.
1) Open the tvHeadend webpage - go to menu option "Configuration" > "DVB inputs" > "Networks" 2) Click on "Add" button to add a new IPTV source 3) Choose "IPTV Automatic Network" and enter a network name 4) Fill in the fields as follows:
"Maximum # input streams" = 1 # for Zattoo FREE
= 2 # for Zattoo PREMIUM
= 4 # for Zattoo ULTIMATE
"URL" = file:///home/<user>/ztvh/channels.m3u
# enter your PC username instead of "<user>"
"Icon base URL" = file:///home/<user>/ztvh
# enter your PC username instead of "<user>"
cat /home/<user>/ztvh/<file> | socat - UNIX-CONNECT:/home/<user>/.hts/tvheadend/epggrab/xmltv.sock
# enter your PC name instead of "<user>"
# enter the file name "zattoo_fullepg.xml" or "zattoo_ext_fullepg.xml" instead of "<file>"
# Enter this command to enter the settings of crontab
crontab -e
# Setup to run the script daily at 3 AM
0 3 * * * ~/ztvh/ztvh.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>/ztvh/<file> | socat - UNIX-CONNECT:/home/hts/.hts/tvheadend/epggrab/xmltv.sock
5 6 * * * cat /home/<user>/ztvh/<file> | socat - UNIX-CONNECT:/home/hts/.hts/tvheadend/epggrab/xmltv.sock
# enter your PC name instead of "<user>"
# enter the file name "zattoo_fullepg.xml" or "zattoo_ext_fullepg.xml" instead of "<file>"
Contact me for support via email: sunsettrack4@gmail.com
FAQ section to follow :-)