people are unable to host their own okay instances...
This commit is contained in:
parent
2949b33286
commit
863ca93f6e
|
@ -1,9 +1,10 @@
|
|||
const fetch = require('node-fetch')
|
||||
|
||||
async function getInstance() {
|
||||
const instances = await (await fetch('https://piped-instances.kavin.rocks/')).json()
|
||||
const list = instances.filter(i => !i.cdn)
|
||||
return (list[Math.floor(Math.random() * list.length)]).api_url
|
||||
// const instances = await (await fetch('https://piped-instances.kavin.rocks/')).json()
|
||||
// const list = instances.filter(i => !i.cdn)
|
||||
// return (list[Math.floor(Math.random() * list.length)]).api_url
|
||||
return 'https://pipedapi.kavin.rocks'
|
||||
}
|
||||
|
||||
async function getVideoMetadata(instance, id) {
|
||||
|
|
Loading…
Reference in New Issue