feat: --download-chunk

Also bump to 2.2.9
This commit is contained in:
2023-01-18 11:28:33 +07:00
parent 178f513e52
commit 95dccf7241
4 changed files with 6 additions and 3 deletions

View File

@ -35,6 +35,7 @@ async def _download_file(file_url: str, file_name: str, file_path: Path | str, f
}
else:
await file_path.touch()
print(f"Downloading {file_url} to {file_path}...")
async with aiohttp.ClientSession() as session:
rsp = await session.get(file_url, headers=headers, timeout=None)
if rsp.status == 416: