diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-12-23 16:54:59 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-12-23 16:54:59 +0100 |
commit | 2d9a53966da3abee99dd03d94cd39d0043cbb01a (patch) | |
tree | 98dcc41cadf8edea3bcdebeccaceccb8f54b60b8 /bin/dbris-m | |
parent | 583961562fa23374de21dfac3ec7e3d161db2207 (diff) |
Use bahn.de rather than bahnhof.de for departure board
bahn.de provides the journeyIDs needed for trip detail requests
Diffstat (limited to 'bin/dbris-m')
-rwxr-xr-x | bin/dbris-m | 4 |
1 files changed, 2 insertions, 2 deletions
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{} ); } } |