diff options
author | Daniel Friesel <derf@finalrewind.org> | 2021-06-19 18:39:47 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2021-06-19 18:39:47 +0200 |
commit | b4a5e6c8018f5fbc704f55b15e262ee18dbcfe60 (patch) | |
tree | 6e03bf3d8ef9252ab4350f5c067cdc77d7279793 /share | |
parent | 5b801824d0ec53a3568ad3f958cdd3d17044018d (diff) |
enhance: marudor.de only accepts 7-digit eva numbers
Diffstat (limited to 'share')
-rwxr-xr-x | share/enhance | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |