diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-07-06 16:22:01 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-07-06 16:22:01 +0200 |
commit | 03d0e9f60b66b84456df2da5310b1a57446cca2e (patch) | |
tree | d1f8c7044fad233e57bad882aa80232552a66684 /lib/Travel | |
parent | 6bbdc021707352f6655df14076edd29241ff8581 (diff) |
DeutscheBahn.pm: Do not include canceled stops in route
Diffstat (limited to 'lib/Travel')
-rw-r--r-- | lib/Travel/Status/DE/DeutscheBahn.pm | 5 |
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 ); } |