mirror of
https://github.com/nathom/streamrip.git
synced 2025-05-23 03:27:14 -04:00
Add support for multiple -u arguments.
This commit is contained in:
parent
6b794a1abb
commit
67657723ca
2 changed files with 35 additions and 33 deletions
|
@ -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",
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue