diff options
author | Daniel Friesel <derf@finalrewind.org> | 2016-04-17 17:17:06 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2016-04-17 17:17:06 +0200 |
commit | 3bba736bfe864586c6d12c41787d195f650f2fdf (patch) | |
tree | a14a0a6df3b9ca7881792577c34cdceff3196b52 | |
parent | f4fca87dbd44b2a14e30a60ee49ab558dba82f96 (diff) |
treat URA stop_indicator as platform
-rw-r--r-- | index.pl | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |