Filter out health = 0

This commit is contained in:
Cadence Ember 2020-08-02 22:15:06 +12:00
parent c79c61ed4e
commit 5fe254eeea
No known key found for this signature in database
GPG key ID: 128B99B1B74A6412
3 changed files with 3 additions and 3 deletions

View file

@ -1,4 +1,4 @@
<!DOCTYPE html><html lang="en"><head><title>Select instance - Invidious</title><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" type="text/css" href="/static/css/main.css?static=48f0608e85"><script src="/static/js/main.js?static=8c7d4f10f2" text="text/javascript" defer></script></head><body><noscript><style>.requires-scripts {
<!DOCTYPE html><html lang="en"><head><title>Select instance - Invidious</title><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" type="text/css" href="/static/css/main.css?static=48f0608e85"><script src="/static/js/main.js?static=ca01d92575" text="text/javascript" defer></script></head><body><noscript><style>.requires-scripts {
display: none;
}</style></noscript><script type="text/javascript">document.body.classList.remove("yesscript")
</script><header class="banner"><div class="logo"></div><h1>Invidious</h1></header><noscript><div class="script-warning"><p>You are seeing the fallback version of this page.<br>

View file

@ -39,7 +39,7 @@
healthKnown
}
}).filter(entry => {
return entry.details.type === "https"
return entry.details.type === "https" && entry.health > 0
}).sort((a, b) => {
return b.health - a.health
}).forEach(entry => {

View file

@ -39,7 +39,7 @@
healthKnown
}
}).filter(entry => {
return entry.details.type === "https"
return entry.details.type === "https" && entry.health > 0
}).sort((a, b) => {
return b.health - a.health
}).forEach(entry => {