summaryrefslogtreecommitdiff
path: root/lib/Travel/Status/DE/IRIS.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Travel/Status/DE/IRIS.pm')
-rw-r--r--lib/Travel/Status/DE/IRIS.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Travel/Status/DE/IRIS.pm b/lib/Travel/Status/DE/IRIS.pm
index 28441e4..95194ff 100644
--- a/lib/Travel/Status/DE/IRIS.pm
+++ b/lib/Travel/Status/DE/IRIS.pm
@@ -29,7 +29,7 @@ sub new {
datetime => $opt{datetime}
// DateTime->now( time_zone => 'Europe/Berlin' ),
developer_mode => $opt{developer_mode},
- iris_base => $opt{iris_base}
+ iris_base => $opt{iris_base}
// 'http://iris.noncd.db.de/iris-tts/timetable',
lookahead => $opt{lookahead} // ( 4 * 60 ),
serializable => $opt{serializable},
@@ -231,6 +231,9 @@ sub get_realtime {
if ( not $result ) {
$result = $self->add_result( $station, $s );
+ if ($result) {
+ $result->set_unscheduled(1);
+ }
}
if ( not $result ) {
next;