summaryrefslogtreecommitdiff
path: root/lib/Travel/Status
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-12-12 14:45:44 +0100
committerDaniel Friesel <derf@finalrewind.org>2021-12-12 14:45:44 +0100
commit1b09e1125a0ec109608dc2196e71a3a2d2c8f1bd (patch)
tree593f6b6cc45ffcb1903b82c248f90918b9c426a2 /lib/Travel/Status
parent191789f3888b936f17ebcd276a00f958cba3b86e (diff)
IRIS: pass iris_base on to child instances used for meta fetching
Diffstat (limited to 'lib/Travel/Status')
-rw-r--r--lib/Travel/Status/DE/IRIS.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Travel/Status/DE/IRIS.pm b/lib/Travel/Status/DE/IRIS.pm
index 435045e..b78d369 100644
--- a/lib/Travel/Status/DE/IRIS.pm
+++ b/lib/Travel/Status/DE/IRIS.pm
@@ -45,7 +45,7 @@ sub new {
iris_base => $opt{iris_base}
// 'https://iris.noncd.db.de/iris-tts/timetable',
keep_transfers => $opt{keep_transfers},
- lookahead => $opt{lookahead} // ( 2 * 60 ),
+ lookahead => $opt{lookahead} // ( 2 * 60 ),
lookbehind => $opt{lookbehind} // ( 0 * 60 ),
main_cache => $opt{main_cache},
rt_cache => $opt{realtime_cache},
@@ -90,6 +90,7 @@ sub new {
my $ref_status = Travel::Status::DE::IRIS->new(
datetime => $self->{datetime},
developer_mode => $self->{developer_mode},
+ iris_base => $self->{iris_base},
keep_transfers => $self->{keep_transfers},
lookahead => $self->{lookahead},
lookbehind => $self->{lookbehind},