From 784c3d193f669ede6bde3b9c734455a5eaf39546 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 13 Jul 2011 13:38:35 +0200 Subject: Use new Travel::Status::DE::DeutscheBahn stuff --- Build.PL | 2 +- bin/db-fakedisplay | 9 ++------- share/template.html | 2 +- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/Build.PL b/Build.PL index 6dcd0fa..747146d 100755 --- a/Build.PL +++ b/Build.PL @@ -17,7 +17,7 @@ Module::Build->new( 'File::ShareDir' => 0, 'HTML::Template' => 0, 'List::Util' => 0, - 'Travel::Status::DE::DeutscheBahn' => 0, + 'Travel::Status::DE::DeutscheBahn' => '0.04', }, share_dir => 'share', sign => 1, 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; diff --git a/share/template.html b/share/template.html index e7e6335..f66ec6e 100644 --- a/share/template.html +++ b/share/template.html @@ -45,7 +45,7 @@ div.destination { top: 1.2em; left: 2.9em; - width: 17em; + width: 8em; font-size: 2em; } -- cgit v1.2.3