Commit 4df0c169 authored by Lozac'h Loic's avatar Lozac'h Loic
Browse files
No related merge requests found
Showing with 4 additions and 1 deletion
+4 -1
......@@ -109,7 +109,10 @@ if __name__ == "__main__":
datafeatures = data["features"]
for feat in datafeatures:
durl = feat["properties"]["services"]["download"]["url"]
outtif = os.path.join(args.downdir,durl.split("/")[-1])
spurl = durl.split("/")
if len(spurl) < 3 :
spurl = durl.split("%2F")
outtif = os.path.join(args.downdir,spurl[-1])
cmd = ["wget", "-O", outtif, durl]
process_command(cmd)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment