switched to a faster invidious instance

This commit is contained in:
Emily 2020-04-19 00:14:54 +10:00
parent 31ce5b28b2
commit 9bd67779ec

View file

@ -56,10 +56,10 @@ module.exports = client => {
try {
const id = await ytdl.getURLVideoID(query)
resp = await fetch('https://invidio.us/api/v1/videos/' + id)
resp = await fetch('https://invidious.snopyta.org/api/v1/videos/' + id)
console.log(resp)
} catch (err) {
resp = await fetch('https://invidio.us/api/v1/search?q=' + encodeURIComponent(query))
resp = await fetch('https://invidious.snopyta.org/api/v1/search?q=' + encodeURIComponent(query))
}
const parsed = await resp.json()