Allow multiple URLs in the command line
This commit is contained in:
parent
b8a9cd62cb
commit
8e824c084c
|
@ -7,11 +7,12 @@ from deemix.app.settings import initSettings
|
||||||
|
|
||||||
@click.command()
|
@click.command()
|
||||||
@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.argument('url')
|
@click.argument('url', nargs=-1, required=True)
|
||||||
def download(bitrate, url):
|
def download(bitrate, url):
|
||||||
settings = initSettings()
|
settings = initSettings()
|
||||||
app.login()
|
app.login()
|
||||||
app.downloadLink(url, settings, bitrate)
|
for u in url:
|
||||||
|
app.downloadLink(u, settings, bitrate)
|
||||||
click.echo("All done!")
|
click.echo("All done!")
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue