diff --git a/streamrip/cli.py b/streamrip/cli.py index 66033a9..eb38cb7 100644 --- a/streamrip/cli.py +++ b/streamrip/cli.py @@ -31,6 +31,7 @@ if not os.path.isdir(CACHE_DIR): "--urls", metavar="URLS", help="Url from Qobuz, Tidal, SoundCloud, or Deezer", + multiple=True, ) @click.option( "-q", diff --git a/streamrip/core.py b/streamrip/core.py index a3da94f..2a1ba9a 100644 --- a/streamrip/core.py +++ b/streamrip/core.py @@ -111,7 +111,7 @@ class MusicDL(list): else: self.db = [] - def handle_urls(self, url: str): + def handle_urls(self, urls): """Download a url. :param url: @@ -119,6 +119,7 @@ class MusicDL(list): :raises InvalidSourceError :raises ParsingError """ + url = ' '.join(urls) # youtube is handled by youtube-dl, so much of the # processing is not necessary youtube_urls = self.youtube_url_parse.findall(url)