Skip to content

Commit

Permalink
Append available channels to XMLTV file
Browse files Browse the repository at this point in the history
  • Loading branch information
sunsettrack4 committed May 30, 2019
1 parent ee7751d commit fd509e8
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ sudo cpanm install utf8
mkdir ~/ztvh

# Download the .zip file and extract the files into the "ztvh" folder:
wget https://github.com/sunsettrack4/zattoo_tvh/archive/v0.5.4.zip
wget https://github.com/sunsettrack4/zattoo_tvh/archive/v0.5.5.zip

# Unzip the file:
unzip v0.5.4.zip
unzip v0.5.5.zip

# Move all script files to the created ztvh folder
mv ~/zattoo_tvh-0.5.4/* ~/ztvh/
mv ~/zattoo_tvh-0.5.5/* ~/ztvh/

# Set system-wide permissions to the folder and its related files
sudo chmod 0777 ~/ztvh
Expand Down
8 changes: 4 additions & 4 deletions zguide_xmltv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ sed -i -e 's/\[{.*/<\/programme>/g' -e '/^\s*$/d' workfile
#

printf "\rAdding channel list to EPG file... "
sed 's/\(.*\)\("title": "[^"]*", \)\(.*\)/\2\1\3/g' ~/ztvh/work/epg_channels_file > workfile2
sed -i 's/\(.*\)\("cid": "[^"]*", \)\(.*\)/\2\1\3/g' workfile2
sed -i -e 's/\("cid": "[^"]*", \)\("title": "[^"]*", \)\(.*\)/\1\2-END-/g' -e '/"level": "/d' workfile2
sed -i 's/"cid": "/<channel id="/g;s/", "title": "/">\n <display-name lang="de">/g;s/", -END-/<\/display-name>\n<\/channel>/g' workfile2
sed '/EXTINF/s/.*tvg-id="/<channel id="/g' ~/ztvh/channels.m3u > workfile2
sed -i '/<channel id=/s/" group-title=".*, /">\n <display-name lang="de">/g' workfile2
sed -i '/<display-name/s/.*/&<\/display-name>\n<\/channel>/g' workfile2
sed -i -e '/pipe:\/\//d' -e '/EXTM3U/d' workfile2
cat workfile >> workfile2 && mv workfile2 workfile

printf "\rSetting XMLTV file type... "
Expand Down
8 changes: 4 additions & 4 deletions zguide_xmltv_simple.sh
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ sed -i -e 's/\[{.*/<\/programme>/g' -e '/^\s*$/d' workfile
#

printf "\rAdding channel list to EPG file... "
sed 's/\(.*\)\("title": "[^"]*", \)\(.*\)/\2\1\3/g' ~/ztvh/work/epg_channels_file > workfile2
sed -i 's/\(.*\)\("cid": "[^"]*", \)\(.*\)/\2\1\3/g' workfile2
sed -i -e 's/\("cid": "[^"]*", \)\("title": "[^"]*", \)\(.*\)/\1\2-END-/g' -e '/"level": "/d' workfile2
sed -i 's/"cid": "/<channel id="/g;s/", "title": "/">\n <display-name lang="de">/g;s/", -END-/<\/display-name>\n<\/channel>/g' workfile2
sed '/EXTINF/s/.*tvg-id="/<channel id="/g' ~/ztvh/channels.m3u > workfile2
sed -i '/<channel id=/s/" group-title=".*, /">\n <display-name lang="de">/g' workfile2
sed -i '/<display-name/s/.*/&<\/display-name>\n<\/channel>/g' workfile2
sed -i -e '/pipe:\/\//d' -e '/EXTM3U/d' workfile2
cat workfile >> workfile2 && mv workfile2 workfile

printf "\rSetting XMLTV file type... "
Expand Down
4 changes: 2 additions & 2 deletions ztvh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ clear
echo " "
echo "ZattooUNLIMITED for VLC and tvheadend "
echo "(c) 2017-2019 Jan-Luca Neumann I + "
echo "Script v0.5.4 2019/05/11 | Zattoo v2.13.1 I I + "
echo "Script v0.5.5 2019/05/30 | Zattoo v2.13.1 I I + "
echo " I I + "
echo " II "
echo "ZZZZZZZZZ AA TTTTTTTTTT TTTTTTTTTT 888888 888888 "
Expand Down Expand Up @@ -2202,7 +2202,7 @@ clear

echo "ZattooUNLIMITED for VLC and tvheadend"
echo "(c) 2017-2019 Jan-Luca Neumann"
echo "Script v0.5.3 | Zattoo v2.13.1"
echo "Script v0.5.5 | Zattoo v2.13.1"
echo ""
echo "=== GRABBER STARTUP ==="
echo ""
Expand Down

0 comments on commit fd509e8

Please sign in to comment.