From 2d9a53966da3abee99dd03d94cd39d0043cbb01a Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Mon, 23 Dec 2024 16:54:59 +0100 Subject: Use bahn.de rather than bahnhof.de for departure board bahn.de provides the journeyIDs needed for trip detail requests --- bin/dbris-m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/dbris-m b/bin/dbris-m index d4de7e7..f8dd9f7 100755 --- a/bin/dbris-m +++ b/bin/dbris-m @@ -80,7 +80,7 @@ elsif ( $opt{station} !~ m{ ^ \d+ $ }x ) { = Travel::Status::DE::DBRIS->new( locationSearch => $opt{station} ); for my $result ( $status->results ) { if ( defined $result->eva ) { - $opt{station} = $result->eva; + $opt{station} = $result; last; } } @@ -172,7 +172,7 @@ if ( $opt{station} ) { : q{ } x ( $max_delay + 2 ), $result->line, $result->dest_name, - $result->platform // $result->sched_platform + $result->rt_platform // $result->platform // q{} ); } } -- cgit v1.2.3