summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-07-06 16:22:01 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-07-06 16:22:01 +0200
commit03d0e9f60b66b84456df2da5310b1a57446cca2e (patch)
treed1f8c7044fad233e57bad882aa80232552a66684
parent6bbdc021707352f6655df14076edd29241ff8581 (diff)
DeutscheBahn.pm: Do not include canceled stops in route
-rw-r--r--lib/Travel/Status/DE/DeutscheBahn.pm5
1 files changed, 5 insertions, 0 deletions
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 );
}