summaryrefslogtreecommitdiff
path: root/lib/DBInfoscreen/Controller
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-02-25 05:57:07 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2024-02-25 05:57:29 +0100
commiteda30956e3003831f296b76c856e22409194869c (patch)
tree5e92c3135d08e62530a8979b5d0eb42ea4bde3bc /lib/DBInfoscreen/Controller
parent36856a6d40d8fa198f89c594958ad11c2e54d9b8 (diff)
Work around Berlin Hbf breaking everything4.20.6
Diffstat (limited to 'lib/DBInfoscreen/Controller')
-rw-r--r--lib/DBInfoscreen/Controller/Stationboard.pm10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm
index e563b80..db69b7e 100644
--- a/lib/DBInfoscreen/Controller/Stationboard.pm
+++ b/lib/DBInfoscreen/Controller/Stationboard.pm
@@ -978,6 +978,16 @@ sub station_train_details {
$opt{lookahead} = $self->config->{lookahead} + 20;
}
+ # Berlin Hbf exists twice:
+ # - BLS / 8011160
+ # - BL / 8098160 (formerly "Berlin Hbf (tief)")
+ # Right now DBF assumes that station name -> EVA / DS100 is a unique map.
+ # This is not the case. Work around it here until dbf has been adjusted
+ # properly.
+ if ( $station eq 'Berlin Hbf' ) {
+ $opt{with_related} = 1;
+ }
+
$self->render_later;
# Always performs an IRIS request