diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-12-03 23:06:31 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-12-03 23:06:31 (GMT) |
commit | ea8d6af5441d31f882cfad57a9ed8add1fae43b5 (patch) | |
tree | 0719f0807fc7d2201928dfaa0fb9ba3cd7c6aa60 | |
parent | 4c2e1606be628ab03dbb50225c0c2cb8789f1118 (diff) |
use show type for list export
-rwxr-xr-x | rh-bin/showlist.json | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/rh-bin/showlist.json b/rh-bin/showlist.json index c7a3b5e..d82e8e0 100755 --- a/rh-bin/showlist.json +++ b/rh-bin/showlist.json @@ -52,10 +52,10 @@ if(defined $ctx) { for my $href (@sorted) { my %mshow; $mshow{'id'} = int($href->{'ID'}); + $mshow{'type'} = $href->{'TYPE'}; $mshow{'title'} = $href->{'TITLE'}; - if($href->{'TYPE'} eq 'r') { - $mshow{'title'} .= ' (Wiederholung)'; - } + $mshow{'title'} .= ' (Wiederholung)' if($href->{'TYPE'} eq 'r'); + $mshow{'title'} .= ' (Sondersendung)' if($href->{'TYPE'} eq 's'); $mshow{'weeks'} = $href->{'SHOWS'}; my %parts = %{$href->{'SHOWS'}}; @@ -72,10 +72,10 @@ if(defined $ctx) { for my $href (@sorted) { my %show; $show{'id'} = int($href->{'ID'}); + $show{'type'} = $href->{'TYPE'}; $show{'title'} = $href->{'TITLE'}; - if($href->{'TYPE'} eq 'r') { - $show{'title'} .= ' (Wiederholung)'; - } + $show{'title'} .= ' (Wiederholung)' if($href->{'TYPE'} eq 'r'); + $show{'title'} .= ' (Sondersendung)' if($href->{'TYPE'} eq 's'); if(exists($multirefs{$href->{'ID'}})) { $show{'multi'} = $multirefs{$href->{'ID'}}; } |