From 6c2ebcb388c3ee99522b2afd9e83dcabe8eb4b61 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sat, 25 Nov 2023 01:24:35 +0100 Subject: hafas-m: journey: filter out 'from X as Y towards Z' messages The stop list already provides that information --- bin/hafas-m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/hafas-m b/bin/hafas-m index 2626eca..7df631f 100755 --- a/bin/hafas-m +++ b/bin/hafas-m @@ -390,6 +390,11 @@ elsif ( $opt{journey} ) { } for my $msg ( $result->messages ) { + if ( $msg->code eq + 'text.journeystop.product.or.direction.changes.journey.message' ) + { + next; + } say ''; if ( $msg->short ) { printf( "%s\n", $msg->short ); -- cgit v1.2.3