From 03d0e9f60b66b84456df2da5310b1a57446cca2e Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 6 Jul 2011 16:22:01 +0200 Subject: DeutscheBahn.pm: Do not include canceled stops in route --- lib/Travel/Status/DE/DeutscheBahn.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib') diff --git a/lib/Travel/Status/DE/DeutscheBahn.pm b/lib/Travel/Status/DE/DeutscheBahn.pm index be0621d..8fb0ca2 100644 --- a/lib/Travel/Status/DE/DeutscheBahn.pm +++ b/lib/Travel/Status/DE/DeutscheBahn.pm @@ -144,6 +144,11 @@ sub results { next; } my $stop = $1; + + if ( $stop =~ m{ [(] Halt \s entf.llt [)] }ox ) { + next; + } + push( @via, $stop ); } -- cgit v1.2.3