summaryrefslogtreecommitdiff
path: root/bin/db-ris
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-07-13 13:13:24 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-07-13 13:13:24 +0200
commit10687196f1f39d01c17a415898758b3a65608396 (patch)
tree8b5a96f84880afb090e0910daaf81f6c1e5b08b8 /bin/db-ris
parentd463bbcd8475dd0261fb28efcc7b4b6d079a27a1 (diff)
DeutscheBahn/Result: Return only useful text in info, add info_raw for the raw string
Diffstat (limited to 'bin/db-ris')
-rwxr-xr-xbin/db-ris10
1 files changed, 1 insertions, 9 deletions
diff --git a/bin/db-ris b/bin/db-ris
index f5633b0..962b5cd 100755
--- a/bin/db-ris
+++ b/bin/db-ris
@@ -84,14 +84,6 @@ sub display_result {
return;
}
-sub filter_info {
- my ($info) = @_;
-
- $info =~ s{ (?: ^ | , ) (?: p.nktlich | k [.] A [.] ) }{}x;
-
- return $info;
-}
-
sub filter_via {
my (@via) = @_;
@@ -151,7 +143,7 @@ for my $d ( $status->results() ) {
[
$d->time, $d->train,
join( q{ }, filter_via(@via) ), $d->destination,
- $d->platform, filter_info( $d->info )
+ $d->platform, $d->info,
]
);
}