one more blacklisted instance
This commit is contained in:
		
							parent
							
								
									19cad3101c
								
							
						
					
					
						commit
						bf789176f1
					
				| 
						 | 
					@ -2,7 +2,7 @@ const fetch = require('node-fetch')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
async function getInstance() {
 | 
					async function getInstance() {
 | 
				
			||||||
    const instances = await (await fetch('https://piped-instances.kavin.rocks/')).json()
 | 
					    const instances = await (await fetch('https://piped-instances.kavin.rocks/')).json()
 | 
				
			||||||
    const list = instances.filter(i => i.cdn && i.name != "tokhmi.xyz")
 | 
					    const list = instances.filter(i => i.cdn && i.name != "tokhmi.xyz" && i.name != "rivo.lol")
 | 
				
			||||||
    return (list[Math.floor(Math.random() * list.length)]).api_url
 | 
					    return (list[Math.floor(Math.random() * list.length)]).api_url
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue