From b52687b08e365610a213de348fbb94a01fcbcd68 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 2 Feb 2021 18:16:52 +0100 Subject: Switch to a more performant wagon order backend --- lib/DBInfoscreen/Helper/Wagonorder.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/DBInfoscreen/Helper/Wagonorder.pm b/lib/DBInfoscreen/Helper/Wagonorder.pm index defc4df..9e0612e 100644 --- a/lib/DBInfoscreen/Helper/Wagonorder.pm +++ b/lib/DBInfoscreen/Helper/Wagonorder.pm @@ -106,6 +106,7 @@ sub has_cycle_p { sub check_wagonorder_p { my ( $self, $train_no, $wr_link ) = @_; + return Mojo::Promise->new->resolve; return $self->head_dbdb_p( "https://lib.finalrewind.org/dbdb/has_wagonorder/${train_no}/${wr_link}" @@ -116,7 +117,7 @@ sub get_p { my ( $self, $train_no, $api_ts ) = @_; my $url - = "https://www.apps-bahn.de/wr/wagenreihung/1.0/${train_no}/${api_ts}"; + = "https://ist-wr.noncd.db.de/wagenreihung/1.0/${train_no}/${api_ts}"; my $cache = $self->{realtime_cache}; -- cgit v1.2.3