From 920477d9a0a0b5d5178208fe3da342e5b925640f Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 18 Jun 2015 15:52:16 +0200 Subject: parse most info and make it available properly --- bin/efa | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'bin/efa') diff --git a/bin/efa b/bin/efa index 38248c8..df945d6 100755 --- a/bin/efa +++ b/bin/efa @@ -145,13 +145,16 @@ sub display_connection { $c->delay, $c->departure_stime, $c->arrival_stime ); } - for my $extra ( $c->extra ) { - + for my $extra ( $c->sched_info ) { if ( not( length $ignore_info and $extra =~ /$ignore_info/i ) ) { say "# $extra"; } } + for my $notice ( $c->current_info ) { + printf( "# %s - %s\n", $notice->{subtitle}, $notice->{subject} ); + } + if ( $opt->{maps} ) { for my $m ( $c->departure_routemaps, $c->departure_stationmaps ) { say "# $m"; -- cgit v1.2.3