mirror of
https://github.com/nathom/streamrip.git
synced 2025-05-20 10:15:23 -04:00
Merge branch 'dev' of https://github.com/nathom/streamrip into dev
This commit is contained in:
commit
cf3ba60212
2 changed files with 3 additions and 1 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,7 @@ class MusicDL(list):
|
||||||
else:
|
else:
|
||||||
self.db = []
|
self.db = []
|
||||||
|
|
||||||
def handle_urls(self, url: str):
|
def handle_urls(self, urls):
|
||||||
"""Download a url.
|
"""Download a url.
|
||||||
|
|
||||||
:param url:
|
:param url:
|
||||||
|
@ -119,6 +119,7 @@ class MusicDL(list):
|
||||||
:raises InvalidSourceError
|
:raises InvalidSourceError
|
||||||
:raises ParsingError
|
:raises ParsingError
|
||||||
"""
|
"""
|
||||||
|
url = ' '.join(urls)
|
||||||
# youtube is handled by youtube-dl, so much of the
|
# youtube is handled by youtube-dl, so much of the
|
||||||
# processing is not necessary
|
# processing is not necessary
|
||||||
youtube_urls = self.youtube_url_parse.findall(url)
|
youtube_urls = self.youtube_url_parse.findall(url)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue