Fixed cli not working on Windows
This commit is contained in:
parent
f85b208af4
commit
250682ea18
|
@ -1,3 +1,3 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
__version__ = "1.5.1"
|
__version__ = "1.5.2"
|
||||||
|
|
|
@ -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()
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue