switched to a faster invidious instance
This commit is contained in:
parent
31ce5b28b2
commit
9bd67779ec
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue