From 46191f8f6e508b5ad985eda8e8de45cdb3da3f0d Mon Sep 17 00:00:00 2001 From: replydev Date: Wed, 20 May 2020 19:52:01 +0200 Subject: [PATCH] Fix flag name error --- deemix/__main__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deemix/__main__.py b/deemix/__main__.py index 8e9837f..d4516bc 100644 --- a/deemix/__main__.py +++ b/deemix/__main__.py @@ -10,8 +10,8 @@ from os.path import isfile @click.option('-b', '--bitrate', default=None, help='Overwrites the default bitrate selected') @click.option('-l', '--local', is_flag=True, help='Downloads in a local folder insted of using the default') @click.argument('url', nargs=-1, required=True) -def download(bitrate, localFolder, url): - settings = initSettings(localFolder) +def download(bitrate, local, url): + settings = initSettings(local) app.login() if isfile(url[0]): filename = url[0] @@ -20,7 +20,7 @@ def download(bitrate, localFolder, url): for u in url: app.downloadLink(u, settings, bitrate) click.echo("All done!") - if localFolder: + if local: click.echo(settings['downloadLocation']) #folder name output