diff --git a/contrib/i3bar-snippet.py b/contrib/i3bar-snippet.py index f2ce6a5..c02d63c 100755 --- a/contrib/i3bar-snippet.py +++ b/contrib/i3bar-snippet.py @@ -1,7 +1,7 @@ #!/usr/bin/python3 # This script queries the Travelynx API if you are checked into a train. If -# yes, marudor.de is additionally queried for the next stop, and a JSON object +# yes, bahn.expert is additionally queried for the next stop, and a JSON object # like this is written to stdout: # {"full_text": "RE26824, next: D\u00fcren at 15:38+5, dest: Aachen Hbf at 16:07+5", "markup": "pango"}, # The script then exits. @@ -80,7 +80,7 @@ predicted_arrival_timestamp = j["toStation"]["realTime"] delay = (predicted_arrival_timestamp - scheduled_arrival_timestamp) / 60 try: - details_res = requests.get(f"https://marudor.de/api/hafas/v2/details/{train}") + details_res = requests.get(f"https://bahn.expert/api/hafas/v2/details/{train}") details = details_res.json() # print(json.dumps(details, sort_keys=True, indent=4), file=sys.stderr) next_stop_name = details["currentStop"]["station"]["title"] diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm index 6c2dd50..8e6a465 100755 --- a/lib/Travelynx.pm +++ b/lib/Travelynx.pm @@ -130,7 +130,7 @@ sub startup { # security and usability for websites that want to maintain user's logged-in # session after the user arrives from an external link". In practice, # Safari (both iOS and macOS) does not send a SameSite=lax cookie when - # following a link from an external site. So, marudor.de providing a + # following a link from an external site. So, bahn.expert providing a # checkin link to travelynx.de/s/whatever does not work because the user # is not logged in due to Safari not sending the cookie. # diff --git a/lib/Travelynx/Command/database.pm b/lib/Travelynx/Command/database.pm index 32522be..d580c05 100644 --- a/lib/Travelynx/Command/database.pm +++ b/lib/Travelynx/Command/database.pm @@ -1072,7 +1072,7 @@ my @migrations = ( # v24 -> v25 # travelynx 1.23 adds optional links to external services, e.g. - # DBF or marudor.de departure boards + # DBF or bahn.expert departure boards sub { my ($db) = @_; $db->query( diff --git a/lib/Travelynx/Model/Users.pm b/lib/Travelynx/Model/Users.pm index 09d9538..255b939 100644 --- a/lib/Travelynx/Model/Users.pm +++ b/lib/Travelynx/Model/Users.pm @@ -13,9 +13,9 @@ use DateTime; my @sb_templates = ( undef, [ 'DBF', 'https://dbf.finalrewind.org/{name}?rt=1#{tt}{tn}' ], - [ 'marudor.de', 'https://marudor.de/{name}#{id}' ], + [ 'marudor.de', 'https://bahn.expert/{name}#{id}' ], [ 'NVM', 'https://nvm.finalrewind.org/board/{eva}#{tt}{tn}' ], - [ 'marudor.de/regional', 'https://marudor.de/regional/{name}#{id}' ], + [ 'marudor.de/regional', 'https://bahn.expert/regional/{name}#{id}' ], ); sub new { diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep index f2b6eba..040c5de 100644 --- a/templates/_checked_in.html.ep +++ b/templates/_checked_in.html.ep @@ -78,7 +78,7 @@ % @wagons = reverse @wagons; % } % } - + %= $direction % for my $wagon (@wagons) { % if (not ($wagon->is_locomotive or $wagon->is_powercar)) { @@ -297,7 +297,7 @@ % }
- % my $url = 'https://marudor.de/details/' . $journey->{train_type} . ' ' . $journey->{train_no} . '/' . DateTime->now(time_zone => 'Europe/Berlin')->epoch . '000'; + % my $url = 'https://bahn.expert/details/' . $journey->{train_type} . ' ' . $journey->{train_no} . '/' . DateTime->now(time_zone => 'Europe/Berlin')->epoch . '000'; timeline Zuglauf % if ($journey->{extra_data}{trip_id}) { Karte diff --git a/templates/_public_status_card.html.ep b/templates/_public_status_card.html.ep index 0f9019b..494532b 100644 --- a/templates/_public_status_card.html.ep +++ b/templates/_public_status_card.html.ep @@ -151,7 +151,7 @@ % if ($journey->{traewelling_url}) { timeline Träwelling % } else { - % my $url = 'https://marudor.de/details/' . $journey->{train_type} . ' ' . $journey->{train_no} . '/' . DateTime->now(time_zone => 'Europe/Berlin')->epoch . '000'; + % my $url = 'https://bahn.expert/details/' . $journey->{train_type} . ' ' . $journey->{train_no} . '/' . DateTime->now(time_zone => 'Europe/Berlin')->epoch . '000'; timeline Zuglauf % } % if ($journey->{extra_data}{trip_id}) { diff --git a/templates/use_external_links.html.ep b/templates/use_external_links.html.ep index d58e33d..4540e40 100644 --- a/templates/use_external_links.html.ep +++ b/templates/use_external_links.html.ep @@ -42,7 +42,7 @@
@@ -52,7 +52,7 @@