summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-04-17 17:17:06 +0200
committerDaniel Friesel <derf@finalrewind.org>2016-04-17 17:17:06 +0200
commit3bba736bfe864586c6d12c41787d195f650f2fdf (patch)
treea14a0a6df3b9ca7881792577c34cdceff3196b52
parentf4fca87dbd44b2a14e30a60ee49ab558dba82f96 (diff)
treat URA stop_indicator as platform
-rw-r--r--index.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/index.pl b/index.pl
index 3903dbe..db0abd2 100644
--- a/index.pl
+++ b/index.pl
@@ -271,7 +271,9 @@ sub get_filtered_departures {
my $line = $d->line;
my $platform
- = $d->can('platform') ? ( split( qr{ }, $d->platform ) )[-1] : q{};
+ = $d->can('platform')
+ ? ( split( qr{ }, $d->platform ) )[-1]
+ : ( $d->can('stop_indicator') ? $d->stop_indicator : q{} );
my $destination = $d->destination;
my $time = $d->time;
my $etr;