From c56337cef1d3a4069fae48c1d90953f5194556e0 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 4 Jun 2015 18:18:18 +0200 Subject: add route_interesting (only useful when full_routes is specified) --- lib/Travel/Status/DE/EFA.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/Travel/Status/DE/EFA.pm') diff --git a/lib/Travel/Status/DE/EFA.pm b/lib/Travel/Status/DE/EFA.pm index 06ff1c2..c134698 100644 --- a/lib/Travel/Status/DE/EFA.pm +++ b/lib/Travel/Status/DE/EFA.pm @@ -162,7 +162,7 @@ sub errstr { sub sprintf_date { my ($e) = @_; - if ($e->getAttribute('day') == -1) { + if ( $e->getAttribute('day') == -1 ) { return undef; } @@ -176,7 +176,7 @@ sub sprintf_date { sub sprintf_time { my ($e) = @_; - if ($e->getAttribute('minute') == -1) { + if ( $e->getAttribute('minute') == -1 ) { return undef; } @@ -322,6 +322,7 @@ sub parse_route { dep_date => sprintf_date( $dates[-1] ), dep_time => sprintf_time( $times[-1] ), stop => decode( 'UTF-8', $e->getAttribute('name') ), + stop_suf => decode( 'UTF-8', $e->getAttribute('nameWO') ), platform => $e->getAttribute('platformName'), } ); -- cgit v1.2.3