From 8e824c084cf9c68d7039a062bf364dbc3511a0db Mon Sep 17 00:00:00 2001 From: Yoav Shai Date: Fri, 15 May 2020 01:06:40 +0300 Subject: [PATCH] Allow multiple URLs in the command line --- deemix/__main__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/deemix/__main__.py b/deemix/__main__.py index c683f5b..d49e706 100644 --- a/deemix/__main__.py +++ b/deemix/__main__.py @@ -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!")