mirror of
https://github.com/nathom/streamrip.git
synced 2025-05-27 13:34:38 -04:00
Send last.fm help for -u option if ParsingError is raised
This commit is contained in:
parent
f337131767
commit
c34656fc82
1 changed files with 9 additions and 1 deletions
|
@ -112,7 +112,15 @@ class MusicDL(list):
|
|||
|
||||
parsed = self.parse_urls(url)
|
||||
if not parsed and len(self) == 0:
|
||||
raise ParsingError(url)
|
||||
if "last.fm" in url:
|
||||
message = (
|
||||
f"For last.fm urls, use the {click.style('lastfm', fg='yellow')} "
|
||||
f"command. See {click.style('rip lastfm --help', fg='yellow')}."
|
||||
)
|
||||
else:
|
||||
message = url
|
||||
|
||||
raise ParsingError(message)
|
||||
|
||||
for source, url_type, item_id in parsed:
|
||||
if item_id in self.db:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue