From 975314953acc5780760c5247f3d9c15d49d0c692 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sat, 13 Apr 2024 19:04:56 +0200 Subject: station name: remove ÖBB workaround (fixed in HAFAS 6.02) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/DBInfoscreen/Controller/Stationboard.pm | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm index 896554d..54390d6 100644 --- a/lib/DBInfoscreen/Controller/Stationboard.pm +++ b/lib/DBInfoscreen/Controller/Stationboard.pm @@ -518,19 +518,6 @@ sub handle_request { ( $status->station ? $status->station->{name} : $station ), }; - # Travel::Status::DE::HAFAS mis-detects ÖBB station names - if ( $hafas - and $hafas eq 'ÖBB' - and @{ $status->station->{names} // [] } > 1 ) - { - $data->{station_name} = $station; - } - elsif ( $status->station and $status->station->{names} ) { - $data->{station_name} - = List::Util::reduce { length($a) < length($b) ? $a : $b } - @{ $status->station->{names} }; - } - if ( not @{ $data->{results} } and $template eq 'json' ) { $self->handle_no_results_json( $station, $data, $api_version ); return; -- cgit v1.2.3