summaryrefslogtreecommitdiff
path: root/bin/efa-m
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-05-01 16:55:09 +0200
committerDaniel Friesel <derf@finalrewind.org>2020-05-01 16:55:09 +0200
commit86c30dcd6b010f143f05bae367b8acb84e0f6cee (patch)
tree27b9d328c190cfe2ad2efda99c5a7ce9652cc70f /bin/efa-m
parentc69a189b4c3e6ba5db4de67e07a10eabe1a6017d (diff)
Fix VOR and LinzAG encoding
Diffstat (limited to 'bin/efa-m')
-rwxr-xr-xbin/efa-m5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/efa-m b/bin/efa-m
index 7e84863..93c6b6b 100755
--- a/bin/efa-m
+++ b/bin/efa-m
@@ -16,6 +16,7 @@ use List::Util qw(first max);
use Travel::Status::DE::EFA;
my $efa_url = 'http://efa.vrr.de/vrr/XSLT_DM_REQUEST';
+my $efa_encoding;
my ( $date, $time, $input_type, $list_lines, $offset, $relative_times );
my ($full_routes);
my ( $filter_via, $track_via );
@@ -95,7 +96,8 @@ if ($service) {
);
exit 1;
}
- $efa_url = $service_ref->{url};
+ $efa_url = $service_ref->{url};
+ $efa_encoding = $service_ref->{encoding};
}
sub new_efa_by_url {
@@ -104,6 +106,7 @@ sub new_efa_by_url {
date => $date,
developer_mode => $developer_mode,
efa_url => $url,
+ efa_encoding => $efa_encoding,
full_routes => $full_routes,
place => $place,
name => $input,