Add support for multiple -u arguments.

This commit is contained in:
Nicholas George 2021-06-22 05:18:23 -05:00
parent 6b794a1abb
commit 67657723ca
2 changed files with 35 additions and 33 deletions

View file

@ -31,6 +31,7 @@ if not os.path.isdir(CACHE_DIR):
"--urls", "--urls",
metavar="URLS", metavar="URLS",
help="Url from Qobuz, Tidal, SoundCloud, or Deezer", help="Url from Qobuz, Tidal, SoundCloud, or Deezer",
multiple=True,
) )
@click.option( @click.option(
"-q", "-q",

View file

@ -111,7 +111,8 @@ class MusicDL(list):
else: else:
self.db = [] self.db = []
def handle_urls(self, url: str): def handle_urls(self, urls):
for url in urls:
"""Download a url. """Download a url.
:param url: :param url: