summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-07-13 13:38:35 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-07-13 13:38:35 +0200
commit784c3d193f669ede6bde3b9c734455a5eaf39546 (patch)
tree14c5d1ac7517a68c7275d09574dfe3ca381cbb59 /bin
parent3f19806f87d0f040124db0e9c2d240939b19673d (diff)
Use new Travel::Status::DE::DeutscheBahn stuff
Diffstat (limited to 'bin')
-rwxr-xr-xbin/db-fakedisplay9
1 files changed, 2 insertions, 7 deletions
diff --git a/bin/db-fakedisplay b/bin/db-fakedisplay
index 7930285..7d7aec5 100755
--- a/bin/db-fakedisplay
+++ b/bin/db-fakedisplay
@@ -38,18 +38,13 @@ if (not defined $info) {
exit 1;
}
-my @via = $info->route;
-my $extra = $info->info;
-
-$extra =~ s{ (?: ^ | , ) (?: p.nktlich | k [.] A [.] ) }{}x;
-
$template->param(
time => $info->time,
train => $info->train,
- via => [ map { { stop => $_ } } splice(@via, 0, 3) ],
+ via => [ map { { stop => $_ } } $info->route_interesting(3) ],
destination => $info->destination,
platform => $info->platform,
- info => $extra,
+ info => $info->info,
);
say $template->output;