mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-24 03:54:20 +00:00
Change !fw error message
This commit is contained in:
parent
e35b1c4733
commit
67018e5a59
1 changed files with 1 additions and 1 deletions
|
@ -20,5 +20,5 @@ class FunkwhaleCommand(PlayCommand):
|
||||||
f"/api/v1/search?query={search}") as response:
|
f"/api/v1/search?query={search}") as response:
|
||||||
j = await response.json()
|
j = await response.json()
|
||||||
if len(j["tracks"]) < 1:
|
if len(j["tracks"]) < 1:
|
||||||
raise InvalidInputError("Nessun video trovato.")
|
raise UserError("Nessun file audio trovato con il nome richiesto.")
|
||||||
return f'{self.config["Funkwhale"]["instance_url"]}{j["tracks"][0]["listen_url"]}'
|
return f'{self.config["Funkwhale"]["instance_url"]}{j["tracks"][0]["listen_url"]}'
|
||||||
|
|
Loading…
Reference in a new issue