From 3bba736bfe864586c6d12c41787d195f650f2fdf Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 17 Apr 2016 17:17:06 +0200 Subject: treat URA stop_indicator as platform --- index.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3