Merge branch 'master' of replydev/deemix into master
This commit is contained in:
commit
dcfabe7d00
|
@ -10,8 +10,8 @@ from os.path import isfile
|
||||||
@click.option('-b', '--bitrate', default=None, help='Overwrites the default bitrate selected')
|
@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.option('-l', '--local', is_flag=True, help='Downloads in a local folder insted of using the default')
|
||||||
@click.argument('url', nargs=-1, required=True)
|
@click.argument('url', nargs=-1, required=True)
|
||||||
def download(bitrate, localFolder, url):
|
def download(bitrate, local, url):
|
||||||
settings = initSettings(localFolder)
|
settings = initSettings(local)
|
||||||
app.login()
|
app.login()
|
||||||
if isfile(url[0]):
|
if isfile(url[0]):
|
||||||
filename = url[0]
|
filename = url[0]
|
||||||
|
@ -20,7 +20,7 @@ def download(bitrate, localFolder, url):
|
||||||
for u in url:
|
for u in url:
|
||||||
app.downloadLink(u, settings, bitrate)
|
app.downloadLink(u, settings, bitrate)
|
||||||
click.echo("All done!")
|
click.echo("All done!")
|
||||||
if localFolder:
|
if local:
|
||||||
click.echo(settings['downloadLocation']) #folder name output
|
click.echo(settings['downloadLocation']) #folder name output
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue