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

Commit

Permalink
Horizon: Remove unicode symbols for 'selected area'
Browse files Browse the repository at this point in the history
  • Loading branch information
sunsettrack4 committed May 21, 2019
1 parent 0618b19 commit 20a1e73
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hzn/ch_json2xml.pl
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@
# DEFINE CHANNEL ID + NAME
my $cname = $item->{'title'};
$cname =~ s/\&/\&/g; # REQUIRED TO READ XML FILE CORRECTLY
$cname =~ s/†//g; # REMOVE "SELECTED AREA"
$cname =~ s/‡//g;

# DEFINE LANGUAGE VERSION
my $languageVER = $initdata->{'language'};
Expand Down
8 changes: 8 additions & 0 deletions hzn/chlist_printer.pl
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@
# DEFINE NEW CHANNEL NAME
my $newcname = $newitem->{'title'};
$newcname =~ s/\&/\&/g; # REQUIRED TO READ XML FILE CORRECTLY
$newcname =~ s/†//g; # REMOVE "SELECTED AREA"
$newcname =~ s/‡//g;

# DEFINE NEW CHANNEL ID
my $newcid = $newitem->{'id'};
Expand Down Expand Up @@ -115,6 +117,8 @@
# DEFINE NEW CHANNEL NAME
my $newcname = $newitem->{'title'};
$newcname =~ s/\&/\&/g; # REQUIRED TO READ XML FILE CORRECTLY
$newcname =~ s/†//g; # REMOVE "SELECTED AREA"
$newcname =~ s/‡//g;

# DEFINE NEW CHANNEL ID
my $newcid = $newitem->{'id'};
Expand Down Expand Up @@ -147,6 +151,8 @@
# DEFINE OLD CHANNEL NAME
my $oldcname = $olditem->{'title'};
$oldcname =~ s/\&/\&/g; # REQUIRED TO READ XML FILE CORRECTLY
$oldcname =~ s/†//g; # REMOVE "SELECTED AREA"
$oldcname =~ s/‡//g;

# DEFINE OLD CHANNEL ID
my $oldcid = $olditem->{'id'};
Expand Down Expand Up @@ -174,6 +180,8 @@
# DEFINE OLD CHANNEL NAME
my $oldcname = $olditem->{'title'};
$oldcname =~ s/\&/\&/g; # REQUIRED TO READ XML FILE CORRECTLY
$oldcname =~ s/†//g; # REMOVE "SELECTED AREA"
$oldcname =~ s/‡//g;

# DEFINE OLD CHANNEL ID
my $oldcid = $olditem->{'id'};
Expand Down
3 changes: 3 additions & 0 deletions hzn/cid_json.pl
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,12 @@
# DEFINE CHANNEL NAME
my $cname = $item->{'title'};
$cname =~ s/\&/\&/g; # REQUIRED TO READ XML FILE CORRECTLY
$cname =~ s/†//g; # REMOVE "SELECTED AREA"
$cname =~ s/‡//g;

# DEFINE CHANNEL ID
my $cid = $item->{'id'};


# ###################
# PRINT JSON OUTPUT #
Expand Down
1 change: 1 addition & 0 deletions hzn/settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ do
printf "\rLoading channel configuration..."
perl cid_json.pl > /tmp/chvalues
sed -i '/{/d;/}/d;s/.*":"//g;s/",//g;/DUMMY/d' /tmp/chvalues
sed -i 's/†//g;s/‡//g' /tmp/chvalues
sort -u /tmp/chvalues > /tmp/chvalues_sorted && mv /tmp/chvalues_sorted /tmp/chvalues

if [ ! -e channels.json ]
Expand Down
Empty file modified hzn/url_printer.pl
100644 → 100755
Empty file.

0 comments on commit 20a1e73

Please sign in to comment.