From eda30956e3003831f296b76c856e22409194869c Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sun, 25 Feb 2024 05:57:07 +0100 Subject: Work around Berlin Hbf breaking everything --- lib/DBInfoscreen/Controller/Stationboard.pm | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 -- cgit v1.2.3