From a506ff2568a65e0509e1d93d64d86c850ecb8b92 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 24 Mar 2021 22:04:55 +0100 Subject: train lookup: pass train type to hafas trainsearch.exe --- lib/DBInfoscreen/Controller/Stationboard.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/DBInfoscreen/Controller') diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm index 0ea6c37..0d88b40 100644 --- a/lib/DBInfoscreen/Controller/Stationboard.pm +++ b/lib/DBInfoscreen/Controller/Stationboard.pm @@ -955,7 +955,8 @@ sub train_details { my $linetype = 'bahn'; - $self->hafas->get_route_timestamps_p( train_no => $train_no )->then( + $self->hafas->get_route_timestamps_p( + train_no => "${train_type} $train_no" )->then( sub { my ( $route_ts, $route_info, $trainsearch ) = @_; -- cgit v1.2.3