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