music: attempt fix search
This commit is contained in:
parent
13b6420ff6
commit
672c39e516
1 changed files with 1 additions and 1 deletions
|
@ -332,7 +332,7 @@ async function enqueue(
|
||||||
}
|
}
|
||||||
|
|
||||||
async function youtubeSearch(msg, str) {
|
async function youtubeSearch(msg, str) {
|
||||||
const items = await fetch(
|
const {items} = await fetch(
|
||||||
`https://www.googleapis.com/youtube/v3/search?key=${
|
`https://www.googleapis.com/youtube/v3/search?key=${
|
||||||
hf.apikeys.google
|
hf.apikeys.google
|
||||||
}&maxResults=5&part=snippet&type=video&q=${encodeURIComponent(str)}`
|
}&maxResults=5&part=snippet&type=video&q=${encodeURIComponent(str)}`
|
||||||
|
|
Loading…
Reference in a new issue