Allow multiple URLs in the command line

This commit is contained in:
Yoav Shai 2020-05-15 01:06:40 +03:00
parent b8a9cd62cb
commit 8e824c084c
1 changed files with 3 additions and 2 deletions

View File

@ -7,11 +7,12 @@ from deemix.app.settings import initSettings
@click.command()
@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):
settings = initSettings()
app.login()
app.downloadLink(url, settings, bitrate)
for u in url:
app.downloadLink(u, settings, bitrate)
click.echo("All done!")