Skip to content

Commit

Permalink
Merge pull request #2141 from nextcloud/artonge/fix/use_nc_url_to_dow…
Browse files Browse the repository at this point in the history
…nload_cities

Use NC URL to download cities list
  • Loading branch information
artonge authored Nov 21, 2023
2 parents ba2862b + 55778c1 commit a6288c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Service/ReverseGeoCoderService.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private function downloadCities1000(bool $force = false): void {
}

// Download zip file to a tmp file.
$response = $this->clientService->newClient()->get("https://download.geonames.org/export/dump/cities1000.zip");
$response = $this->clientService->newClient()->get("https://download.nextcloud.com/server/apps/photos/cities1000.zip");
$tmpFile = tmpfile();
$cities1000ZipTmpFileName = stream_get_meta_data($tmpFile)['uri'];
fclose($tmpFile);
Expand Down

0 comments on commit a6288c1

Please sign in to comment.