From b4a5e6c8018f5fbc704f55b15e262ee18dbcfe60 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 19 Jun 2021 18:39:47 +0200 Subject: enhance: marudor.de only accepts 7-digit eva numbers --- share/enhance | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'share') diff --git a/share/enhance b/share/enhance index 5fe683f..92428e9 100755 --- a/share/enhance +++ b/share/enhance @@ -19,7 +19,7 @@ for my $station ( @{$stations} ) { if ( not $station->{latlong} ) { say "Requesting location for $station->{name} ..."; my $res = $ua->get( - 'https://marudor.de/api/station/v1/station/' . $station->{eva} ); + sprintf('https://marudor.de/api/station/v1/station/%07d', $station->{eva}) ); if ( $res->is_error ) { say ' marudor.de returned error ' . $res->status_line; } -- cgit v1.2.3