music: attempt fix search

This commit is contained in:
Cynthia Foxwell 2022-04-18 23:16:09 -06:00
parent 13b6420ff6
commit 672c39e516

View file

@ -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)}`