Fixed cli not working on Windows

This commit is contained in:
RemixDev 2020-09-29 08:57:22 +02:00
parent f85b208af4
commit 250682ea18
3 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,3 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
__version__ = "1.5.1" __version__ = "1.5.2"

View File

@ -21,7 +21,11 @@ def download(url, bitrate, portable, path):
app.login() app.login()
url = list(url) url = list(url)
if Path(url[0]).is_file(): try:
isfile = Path(url[0]).is_file()
except:
isfile = False
if isfile:
filename = url[0] filename = url[0]
with open(filename) as f: with open(filename) as f:
url = f.readlines() url = f.readlines()

View File

@ -7,7 +7,7 @@ README = (HERE / "README.md").read_text()
setup( setup(
name="deemix", name="deemix",
version="1.5.1", version="1.5.2",
description="A barebone deezer downloader library", description="A barebone deezer downloader library",
long_description=README, long_description=README,
long_description_content_type="text/markdown", long_description_content_type="text/markdown",