diff options
author | Daniel Friesel <derf@finalrewind.org> | 2014-12-05 00:00:36 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2014-12-05 00:00:36 +0100 |
commit | 38c853a1c1fdb168667ff6a3fd523deac0b15a2e (patch) | |
tree | adc158ecd31b8c7975e79e92b92ae572984d11c1 /lib/Travel/Status/DE/IRIS.pm | |
parent | af3e174aaf9d2560fcc49ebc6f6ea5e24545fbac (diff) |
Fix a crash when a train has unscheduled additional stops starting at the selected station
Diffstat (limited to 'lib/Travel/Status/DE/IRIS.pm')
-rw-r--r-- | lib/Travel/Status/DE/IRIS.pm | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/Travel/Status/DE/IRIS.pm b/lib/Travel/Status/DE/IRIS.pm index 5a3c34e..f326195 100644 --- a/lib/Travel/Status/DE/IRIS.pm +++ b/lib/Travel/Status/DE/IRIS.pm @@ -254,6 +254,7 @@ sub get_realtime { if ($e_ar) { $result->add_ar( arrival_ts => $e_ar->getAttribute('ct'), + plan_arrivaL_ts => $e_ar->getAttribute('pt'), platform => $e_ar->getAttribute('cp'), route_pre => $e_ar->getAttribute('cpth'), sched_route_pre => $e_ar->getAttribute('ppth'), @@ -262,11 +263,12 @@ sub get_realtime { } if ($e_dp) { $result->add_dp( - departure_ts => $e_dp->getAttribute('ct'), - platform => $e_dp->getAttribute('cp'), - route_post => $e_dp->getAttribute('cpth'), - sched_route_post => $e_dp->getAttribute('ppth'), - status => $e_dp->getAttribute('cs'), + departure_ts => $e_dp->getAttribute('ct'), + plan_departure_ts => $e_dp->getAttribute('pt'), + platform => $e_dp->getAttribute('cp'), + route_post => $e_dp->getAttribute('cpth'), + sched_route_post => $e_dp->getAttribute('ppth'), + status => $e_dp->getAttribute('cs'), ); } |