Hi guys,
I made a script that merge all epg sources into one single output.
The script can run in background on Ubuntu and you can link the single output to your devices or your panel.
Following script will:
1) download epg from rytec sources (for example: Italy / Germany / Spain)
2) will merge downloaded files in all-in-one file
3) will compress it in *.xml.gz format
Obviously you can change it according to your needs: can change output format or can publish your output file to a webserver.
Software needed
TV Merge: http://manpages.ubuntu.com/manpages/xenial/man1/tv_merge.1p.html
Gzip
Hoping to be helpful
(A like is appreciated ?)
I made a script that merge all epg sources into one single output.
The script can run in background on Ubuntu and you can link the single output to your devices or your panel.
Following script will:
1) download epg from rytec sources (for example: Italy / Germany / Spain)
2) will merge downloaded files in all-in-one file
3) will compress it in *.xml.gz format
Obviously you can change it according to your needs: can change output format or can publish your output file to a webserver.
Bash:
#!/bin/bash
BASE_FOLDER='/root/epg/'
XZ_FOLDER='/root/epg/xz' #tmp path to download xz
rm $XZ_FOLDER/*
#base_url="http://www.xmltvepg.nl"
base_url="http://www.vuplus-community.net/rytec"
#base_url="http://rytecepg.ipservers.eu/epg_data"
#Italy
wget $base_url/rytecIT_Basic.xz -O $XZ_FOLDER/rytecIT_Basic.xz
wget $base_url/rytecIT_Sky.xz -O $XZ_FOLDER/rytecIT_Sky.xz
wget $base_url/rytecIT_SportMovies.xz -O $XZ_FOLDER/rytecIT_SportMovies.xz
#Germany
wget $base_url/rytecDE_Basic.xz -O $XZ_FOLDER/rytecDE_Basic.xz
wget $base_url/rytecDE_Common.xz -O $XZ_FOLDER/rytecDE_Common.xz
wget $base_url/rytecDE_SportMovies.xz -O $XZ_FOLDER/rytecDE_SportMovies.xz
#Spain
wget $base_url/rytecES_Basic.xz -O $XZ_FOLDER/rytecES_Basic.xz
wget $base_url/rytecES_Misc.xz -O $XZ_FOLDER/rytecES_Misc.xz
wget $base_url/rytecES_SportMovies.xz -O $XZ_FOLDER/rytecES_SportMovies.xz
#Italy
unxz $XZ_FOLDER/rytecIT_Basic.xz
unxz $XZ_FOLDER/rytecIT_Sky.xz
unxz $XZ_FOLDER/rytecIT_SportMovies.xz
#Germany
unxz $XZ_FOLDER/rytecDE_Basic.xz
unxz $XZ_FOLDER/rytecDE_Common.xz
unxz $XZ_FOLDER/rytecDE_SportMovies.xz
#Spain
unxz $XZ_FOLDER/rytecES_Basic.xz
unxz $XZ_FOLDER/rytecES_Misc.xz
unxz $XZ_FOLDER/rytecES_SportMovies.xz
#Italy - Live
tv_merge -i $XZ_FOLDER/rytecIT_Basic -m $XZ_FOLDER/rytecIT_Sky -o $XZ_FOLDER/rytecIT_BasicSky
tv_merge -i $XZ_FOLDER/rytecIT_BasicSky -m $XZ_FOLDER/rytecIT_SportMovies -o $XZ_FOLDER/rytecIT_FullLive
#Germany - Live
tv_merge -i $XZ_FOLDER/rytecDE_Basic -m $XZ_FOLDER/rytecDE_Common -o $XZ_FOLDER/rytecDE_BasicCommon
tv_merge -i $XZ_FOLDER/rytecDE_BasicCommon -m $XZ_FOLDER/rytecDE_SportMovies -o $XZ_FOLDER/rytecDE_FullLive
#Spain - Live
tv_merge -i $XZ_FOLDER/rytecES_Basic -m $XZ_FOLDER/rytecES_Misc -o $XZ_FOLDER/rytecES_BasicMisc
tv_merge -i $XZ_FOLDER/rytecES_BasicMisc -m $XZ_FOLDER/rytecES_SportMovies -o $XZ_FOLDER/rytecES_FullLive
#IT/DE/ES - Live
tv_merge -i $XZ_FOLDER/rytecIT_FullLive -m $XZ_FOLDER/rytecDE_FullLive -o $XZ_FOLDER/rytecITDE_FullLive
tv_merge -i $XZ_FOLDER/rytecITDE_FullLive -m $XZ_FOLDER/rytecES_FullLive -o $XZ_FOLDER/rytecITDEES_FullLive
cp $XZ_FOLDER/rytecITDEES_FullLive guide.xml
gzip guide.xml
Software needed
TV Merge: http://manpages.ubuntu.com/manpages/xenial/man1/tv_merge.1p.html
Gzip
Hoping to be helpful
(A like is appreciated ?)
Last edited: