From e9eec4c5a94376cf16497d5b5ee71c36166c0abf Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 12 Dec 2021 10:43:35 +0100 Subject: Use EVA ID for IRIS requests They change less frequently than DS100 codes Closes #11 --- lib/DBInfoscreen/Controller/Stationboard.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm index 7757159..361413d 100644 --- a/lib/DBInfoscreen/Controller/Stationboard.pm +++ b/lib/DBInfoscreen/Controller/Stationboard.pm @@ -218,7 +218,7 @@ sub get_results_for { my @station_matches = Travel::Status::DE::IRIS::Stations::get_station($station); if ( @station_matches == 1 ) { - $station = $station_matches[0][0]; + $station = $station_matches[0][2]; my $status = Travel::Status::DE::IRIS->new( station => $station, main_cache => $opt{cache_iris_main}, -- cgit v1.2.3