Update download base url
This commit is contained in:
parent
c56a9b206c
commit
0c60064c9f
@ -10,11 +10,17 @@ import (
|
||||
"github.com/grumpypixel/go-webget"
|
||||
)
|
||||
|
||||
// const downloadBaseURL = alphafoxtrot.OurAirportsBaseURL
|
||||
// const downloadBaseURL = "https://tmp.askask.com/os/ourairports/"
|
||||
|
||||
// https://github.com/davidmegginson/ourairports-data
|
||||
const downloadBaseURL = "https://davidmegginson.github.io/ourairports-data/"
|
||||
|
||||
// Download csv files from OurAirports.com
|
||||
func DownloadDatabase(targetDir string) error {
|
||||
files := make([]string, 0)
|
||||
for _, filename := range alphafoxtrot.OurAirportsFiles {
|
||||
files = append(files, alphafoxtrot.OurAirportsBaseURL+filename)
|
||||
files = append(files, downloadBaseURL+filename)
|
||||
}
|
||||
var errs []error
|
||||
for _, url := range files {
|
||||
|
Loading…
x
Reference in New Issue
Block a user