Update pyUltroid/fns/helper.py
Browse files- pyUltroid/fns/helper.py +1 -1
pyUltroid/fns/helper.py
CHANGED
@@ -400,7 +400,7 @@ async def download_file(link, name, validate=False):
|
|
400 |
async def _download(content):
|
401 |
if validate and "application/json" in content.headers.get("Content-Type"):
|
402 |
return None, await content.json()
|
403 |
-
with open(name, "wb") as file:
|
404 |
file.write(await content.read())
|
405 |
return name, ""
|
406 |
|
|
|
400 |
async def _download(content):
|
401 |
if validate and "application/json" in content.headers.get("Content-Type"):
|
402 |
return None, await content.json()
|
403 |
+
with open(f"tmp/{name}", "wb") as file:
|
404 |
file.write(await content.read())
|
405 |
return name, ""
|
406 |
|