summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2023-02-13 18:27:26 +0100
committerDaniel Friesel <derf@finalrewind.org>2023-02-13 18:27:26 +0100
commit192af42d0452823489d1da83f6cc2ef7d0984cd2 (patch)
tree3194148bbfc5a4be411d5224027f408f5e88eba0 /lib
parentf24f02278013af81d45e3dd4d254152e781d61c8 (diff)
DBDB: apps-bahn wagenreihung no longer exists
Diffstat (limited to 'lib')
-rw-r--r--lib/Travelynx/Helper/DBDB.pm7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/Travelynx/Helper/DBDB.pm b/lib/Travelynx/Helper/DBDB.pm
index f78f9ec..fb4afcb 100644
--- a/lib/Travelynx/Helper/DBDB.pm
+++ b/lib/Travelynx/Helper/DBDB.pm
@@ -30,7 +30,7 @@ sub has_wagonorder_p {
my ( $self, $ts, $train_no ) = @_;
my $api_ts = $ts->strftime('%Y%m%d%H%M');
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->{cache};
my $promise = Mojo::Promise->new;
@@ -73,11 +73,6 @@ sub get_wagonorder_p {
my $url
= "https://ist-wr.noncd.db.de/wagenreihung/1.0/${train_no}/${api_ts}";
- if ( $api !~ m{i} and $api =~ m{a} ) {
- $url
- = "https://www.apps-bahn.de/wr/wagenreihung/1.0/${train_no}/${api_ts}";
- }
-
my $cache = $self->{cache};
my $promise = Mojo::Promise->new;