Skip to content
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.

Commit

Permalink
Swisscom: Use manifest files to create XMLTV file; use language versi…
Browse files Browse the repository at this point in the history
…on provided by Swisscom
  • Loading branch information
sunsettrack4 committed Apr 22, 2019
1 parent 49b2281 commit 40c29cf
Show file tree
Hide file tree
Showing 6 changed files with 303 additions and 878 deletions.
9 changes: 1 addition & 8 deletions epg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
clear
echo " --------------------------------------------"
echo " EASYEPG SIMPLE XMLTV GRABBER "
echo " Release v0.2.0 BETA - 2019/04/21 "
echo " Release v0.2.1 BETA - 2019/04/22 "
echo " powered by "
echo " "
echo " ==THE======================================="
Expand Down Expand Up @@ -176,12 +176,6 @@ then
ERROR="true"
fi

if [ ! -e swc/compare_crid.pl ]
then
printf "\nMissing file in Swisscom folder: swc/compare_crid.pl"
ERROR="true"
fi

if [ ! -e swc/compare_menu.pl ]
then
printf "\nMissing file in Swisscom folder: swc/compare_menu.pl"
Expand Down Expand Up @@ -1002,7 +996,6 @@ do
echo '{"country":"CH","language":"de"}' > swc/ch/init.json
cp swc/settings.sh swc/ch/settings.sh
cp swc/swc.sh swc/ch/swc.sh
cp swc/compare_crid.pl swc/ch/
cp swc/epg_json2xml.pl swc/ch/
cp swc/ch_json2xml.pl swc/ch/
cp swc/cid_json.pl swc/ch/
Expand Down
3 changes: 2 additions & 1 deletion swc/ch_json2xml.pl
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@
$cname =~ s/\&/\&/g; # REQUIRED TO READ XML FILE CORRECTLY

# DEFINE LANGUAGE VERSION
my $languageVER = $initdata->{'language'};
# my $languageVER = $initdata->{'language'};
my $languageVER = $attributes->{'Languages'}[0];

# DEFINE RYTEC CHANNEL ID (language)
my $rytec = $chdata->{'channels'}{$countryVER};
Expand Down
71 changes: 0 additions & 71 deletions swc/compare_crid.pl

This file was deleted.

Loading

0 comments on commit 40c29cf

Please sign in to comment.