From 250682ea181f26f12bbce36192e6a96af0c3570a Mon Sep 17 00:00:00 2001 From: RemixDev Date: Tue, 29 Sep 2020 08:57:22 +0200 Subject: [PATCH] Fixed cli not working on Windows --- deemix/__init__.py | 2 +- deemix/__main__.py | 6 +++++- setup.py | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/deemix/__init__.py b/deemix/__init__.py index 01cf9ed..cd0b6b9 100644 --- a/deemix/__init__.py +++ b/deemix/__init__.py @@ -1,3 +1,3 @@ #!/usr/bin/env python3 -__version__ = "1.5.1" +__version__ = "1.5.2" diff --git a/deemix/__main__.py b/deemix/__main__.py index e947172..35bb938 100644 --- a/deemix/__main__.py +++ b/deemix/__main__.py @@ -21,7 +21,11 @@ def download(url, bitrate, portable, path): app.login() url = list(url) - if Path(url[0]).is_file(): + try: + isfile = Path(url[0]).is_file() + except: + isfile = False + if isfile: filename = url[0] with open(filename) as f: url = f.readlines() diff --git a/setup.py b/setup.py index 9e7ee27..14ecb1b 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ README = (HERE / "README.md").read_text() setup( name="deemix", - version="1.5.1", + version="1.5.2", description="A barebone deezer downloader library", long_description=README, long_description_content_type="text/markdown",