summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2023-11-25 01:24:35 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2023-11-25 01:24:35 +0100
commit6c2ebcb388c3ee99522b2afd9e83dcabe8eb4b61 (patch)
treece23ffb66140656942efa81b8afcc6082636f392
parentc272713bdd663582c7942a88e9bf3a9cef3b15ce (diff)
hafas-m: journey: filter out 'from X as Y towards Z' messages
The stop list already provides that information
-rwxr-xr-xbin/hafas-m5
1 files changed, 5 insertions, 0 deletions
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 );