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 { try {
const id = await ytdl.getURLVideoID(query) 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) console.log(resp)
} catch (err) { } 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() const parsed = await resp.json()