Now works!

This commit is contained in:
BarsTiger
2022-05-06 13:03:18 +03:00
parent 4aa0357a2f
commit 7238b2f7fd
3 changed files with 3 additions and 4 deletions

View File

@@ -58,7 +58,7 @@ def copy_url(task_id: TaskID, url: str, path: str) -> None:
print(f"[#1d4b6e][{strftime('%H:%M:%S')}][/] [#8dc789]Downloaded {os.path.abspath(path)}[/]")
def dl(urls, dest_dir: str):
def dl(urls: list, dest_dir: str = ".") -> None:
if not os.path.isdir(dest_dir):
os.makedirs(dest_dir, exist_ok=True)
with progress:

View File

@@ -5,12 +5,11 @@ with open("README.md", "r") as fh:
setup(
name="ezzdl",
version="1.0.0",
scripts=["download.py"],
version="3.0.0",
author="BarsTiger",
description="Cool download manager based on rich and its sample code",
long_description=long_description,
py_modules=["ezzdl"],
packages=["ezzdl"],
license='MIT',
url='https://github.com/BarsTiger/ezzdl',
long_description_content_type="text/markdown",