From ca76f36afd153f7731edcc4d81ab58fe7a10b554 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 11 Oct 2020 11:29:24 +0200 Subject: switch to transport.rest v5 --- lib/DBInfoscreen/Helper/HAFAS.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/DBInfoscreen/Helper') diff --git a/lib/DBInfoscreen/Helper/HAFAS.pm b/lib/DBInfoscreen/Helper/HAFAS.pm index d9c6516..2e832be 100644 --- a/lib/DBInfoscreen/Helper/HAFAS.pm +++ b/lib/DBInfoscreen/Helper/HAFAS.pm @@ -222,7 +222,8 @@ sub trainsearch_p { $promise->resolve($result); } else { - $self->{log}->warn("hafas->trainsearch_p($opt{train_no}): train not found"); + $self->{log}->warn( + "hafas->trainsearch_p($opt{train_no}): train not found"); $promise->reject("Zug $opt{train_no} nicht gefunden"); } @@ -346,7 +347,7 @@ sub get_polyline_p { my ( $self, $trip_id, $line ) = @_; my $url - = "https://2.db.transport.rest/trips/${trip_id}?lineName=${line}&polyline=true"; + = "https://v5.db.transport.rest/trips/${trip_id}?lineName=${line}&polyline=true"; my $cache = $self->{realtime_cache}; my $promise = Mojo::Promise->new; -- cgit v1.2.3