Loading lib/DBInfoscreen/Controller/Stationboard.pm +3 −3 Original line number Diff line number Diff line Loading @@ -60,7 +60,7 @@ sub handle_no_results { } elsif ($hafas) { $self->render_later; my $service = 'DB'; my $service = 'VRN'; if ( $hafas ne '1' and Travel::Status::DE::HAFAS::get_service($hafas) ) { $service = $hafas; Loading Loading @@ -381,7 +381,7 @@ sub get_results_p { ); } if ( $opt{hafas} ) { my $service = 'DB'; my $service = 'VRN'; if ( $opt{hafas} ne '1' and Travel::Status::DE::HAFAS::get_service( $opt{hafas} ) ) { Loading Loading @@ -2332,7 +2332,7 @@ sub stations_by_coordinates { return; } my $service = 'DB'; my $service = 'VRN'; if ( $hafas and $hafas ne '1' and Travel::Status::DE::HAFAS::get_service($hafas) ) Loading lib/DBInfoscreen/Helper/HAFAS.pm +4 −2 Original line number Diff line number Diff line Loading @@ -50,7 +50,7 @@ sub get_route_p { if ( $opt{trip_id} ) { $hafas_promise = Travel::Status::DE::HAFAS->new_p( service => $opt{service}, service => $opt{service} // 'VRN', journey => { id => $opt{trip_id}, }, Loading @@ -69,6 +69,7 @@ sub get_route_p { } $hafas_promise //= Travel::Status::DE::HAFAS->new_p( service => $opt{service} // 'VRN', journeyMatch => $opt{train_req} =~ s{^- }{}r, datetime => ( $opt{train} ? $opt{train}->start : $opt{datetime} ), language => $opt{language}, Loading Loading @@ -99,6 +100,7 @@ sub get_route_p { } return Travel::Status::DE::HAFAS->new_p( service => $opt{service} // 'VRN', journey => { id => $result->id, }, Loading Loading @@ -264,7 +266,7 @@ sub get_polyline_p { my $trip_id = $opt{id}; my $line = $opt{line}; my $service = $opt{service}; my $service = $opt{service} // 'VRN'; my $promise = Mojo::Promise->new; Travel::Status::DE::HAFAS->new_p( Loading Loading
lib/DBInfoscreen/Controller/Stationboard.pm +3 −3 Original line number Diff line number Diff line Loading @@ -60,7 +60,7 @@ sub handle_no_results { } elsif ($hafas) { $self->render_later; my $service = 'DB'; my $service = 'VRN'; if ( $hafas ne '1' and Travel::Status::DE::HAFAS::get_service($hafas) ) { $service = $hafas; Loading Loading @@ -381,7 +381,7 @@ sub get_results_p { ); } if ( $opt{hafas} ) { my $service = 'DB'; my $service = 'VRN'; if ( $opt{hafas} ne '1' and Travel::Status::DE::HAFAS::get_service( $opt{hafas} ) ) { Loading Loading @@ -2332,7 +2332,7 @@ sub stations_by_coordinates { return; } my $service = 'DB'; my $service = 'VRN'; if ( $hafas and $hafas ne '1' and Travel::Status::DE::HAFAS::get_service($hafas) ) Loading
lib/DBInfoscreen/Helper/HAFAS.pm +4 −2 Original line number Diff line number Diff line Loading @@ -50,7 +50,7 @@ sub get_route_p { if ( $opt{trip_id} ) { $hafas_promise = Travel::Status::DE::HAFAS->new_p( service => $opt{service}, service => $opt{service} // 'VRN', journey => { id => $opt{trip_id}, }, Loading @@ -69,6 +69,7 @@ sub get_route_p { } $hafas_promise //= Travel::Status::DE::HAFAS->new_p( service => $opt{service} // 'VRN', journeyMatch => $opt{train_req} =~ s{^- }{}r, datetime => ( $opt{train} ? $opt{train}->start : $opt{datetime} ), language => $opt{language}, Loading Loading @@ -99,6 +100,7 @@ sub get_route_p { } return Travel::Status::DE::HAFAS->new_p( service => $opt{service} // 'VRN', journey => { id => $result->id, }, Loading Loading @@ -264,7 +266,7 @@ sub get_polyline_p { my $trip_id = $opt{id}; my $line = $opt{line}; my $service = $opt{service}; my $service = $opt{service} // 'VRN'; my $promise = Mojo::Promise->new; Travel::Status::DE::HAFAS->new_p( Loading