music: remove url param that was limiting info

This commit is contained in:
Cynthia Foxwell 2024-12-22 18:38:41 -07:00
parent 1b72a87764
commit 9939b7a0c9

View file

@ -199,7 +199,7 @@ async function enqueue({guild_id, voice_id, text_id, url, type, addedBy, suppres
}
}
info = await fetch(
`https://www.googleapis.com/youtube/v3/videos?part=snippet,contentDetails&id=${id}&fields=items%2Fsnippet&key=${hf.apikeys.google}`
`https://www.googleapis.com/youtube/v3/videos?part=snippet,contentDetails&id=${id}&key=${hf.apikeys.google}`
)
.then((res) => res.json())
.then((data) => data?.items?.[0]);