Commit dc3526e9 authored by Lozac'h Loic's avatar Lozac'h Loic
Browse files

Update THISMEDownload.py

parent 0e8789e9
......@@ -103,7 +103,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)
......
Markdown is supported
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