diff options
author | Daniel Friesel <derf@finalrewind.org> | 2015-06-04 18:18:18 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2015-06-04 18:18:18 +0200 |
commit | c56337cef1d3a4069fae48c1d90953f5194556e0 (patch) | |
tree | 3f44794b1c64ae66ae88047f60507c7e0b434e2a /lib/Travel/Status/DE/EFA.pm | |
parent | 6ddf48b7f40ef7ad601c2fac579dc0a9dbad0bf1 (diff) |
add route_interesting (only useful when full_routes is specified)
Diffstat (limited to 'lib/Travel/Status/DE/EFA.pm')
-rw-r--r-- | lib/Travel/Status/DE/EFA.pm | 5 |
1 files changed, 3 insertions, 2 deletions
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'), } ); |