Merge branch 'multiple-urls' of gergesh/deemix into master

This commit is contained in:
RemixDev 2020-05-14 22:22:02 +00:00 committed by Gogs
commit 4c80b73433
1 changed files with 3 additions and 2 deletions

View File

@ -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!")