summaryrefslogtreecommitdiff
path: root/lib/Travelynx.pm
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2023-12-27 10:59:35 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2023-12-27 10:59:35 +0100
commitd47195a0cf30a64ca7afcbbeed6edb6b54039104 (patch)
tree3a993c3c303958fd5b5e08058c01cb995ff91477 /lib/Travelynx.pm
parentc24edf3027ab4513e99e3aba876fc19199c35b12 (diff)
Switch to Travel::Status::DE::HAFAS 5.x
Diffstat (limited to 'lib/Travelynx.pm')
-rwxr-xr-xlib/Travelynx.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm
index 0f7b289..41abeed 100755
--- a/lib/Travelynx.pm
+++ b/lib/Travelynx.pm
@@ -541,7 +541,8 @@ sub startup {
my ($journey) = @_;
my $found;
for my $stop ( $journey->route ) {
- if ( $stop->name eq $station or $stop->eva == $station )
+ if ( $stop->loc->name eq $station
+ or $stop->loc->eva == $station )
{
$found = $stop;
last;