mirror of
https://github.com/derf/travelynx
synced 2025-03-02 06:07:10 +00:00
DBDB: apps-bahn wagenreihung no longer exists
This commit is contained in:
parent
f24f022780
commit
192af42d04
1 changed files with 1 additions and 6 deletions
|
@ -30,7 +30,7 @@ sub has_wagonorder_p {
|
||||||
my ( $self, $ts, $train_no ) = @_;
|
my ( $self, $ts, $train_no ) = @_;
|
||||||
my $api_ts = $ts->strftime('%Y%m%d%H%M');
|
my $api_ts = $ts->strftime('%Y%m%d%H%M');
|
||||||
my $url
|
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 $cache = $self->{cache};
|
||||||
my $promise = Mojo::Promise->new;
|
my $promise = Mojo::Promise->new;
|
||||||
|
|
||||||
|
@ -73,11 +73,6 @@ sub get_wagonorder_p {
|
||||||
my $url
|
my $url
|
||||||
= "https://ist-wr.noncd.db.de/wagenreihung/1.0/${train_no}/${api_ts}";
|
= "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 $cache = $self->{cache};
|
||||||
my $promise = Mojo::Promise->new;
|
my $promise = Mojo::Promise->new;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue