fix: lumaeris, remove unsupported version check

This commit is contained in:
Artemy Egorov 2024-08-07 19:55:54 +03:00
parent 3d23107865
commit f641002f6e
3 changed files with 21 additions and 26 deletions

View file

@ -1,7 +1,7 @@
# Instances of TXTDot proxies
- <https://txt.dc09.ru> ![version](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxt.dc09.ru%2Fconfiguration%2Fjson&query=version&label=version) ![protocol](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxt.dc09.ru%2Fconfiguration%2Fjson&query=protocol&label=protocol) ![searx](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxt.dc09.ru%2Fconfiguration%2Fjson&query=third_party.searx_url&label=searx) ![webder](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxt.dc09.ru%2Fconfiguration%2Fjson&query=third_party.webder_url&label=webder) ![image compression](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxt.dc09.ru%2Fconfiguration%2Fjson&query=proxy.img_compress&label=image%20compression)
- <https://txt.bloat.cat> (unsupported configuration version)
- <https://txt.clovius.club> (unsupported configuration version)
- <https://txtd.lumaeris.com/> ![version](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxtd.lumaeris.com%2F%2Fconfiguration%2Fjson&query=version&label=version) ![protocol](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxtd.lumaeris.com%2F%2Fconfiguration%2Fjson&query=protocol&label=protocol) ![searx](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxtd.lumaeris.com%2F%2Fconfiguration%2Fjson&query=third_party.searx_url&label=searx) ![webder](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxtd.lumaeris.com%2F%2Fconfiguration%2Fjson&query=third_party.webder_url&label=webder) ![image compression](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxtd.lumaeris.com%2F%2Fconfiguration%2Fjson&query=proxy.img_compress&label=image%20compression)
- <https://txt.bloat.cat> ![version](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxt.bloat.cat%2Fconfiguration%2Fjson&query=version&label=version) ![protocol](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxt.bloat.cat%2Fconfiguration%2Fjson&query=protocol&label=protocol) ![searx](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxt.bloat.cat%2Fconfiguration%2Fjson&query=third_party.searx_url&label=searx) ![webder](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxt.bloat.cat%2Fconfiguration%2Fjson&query=third_party.webder_url&label=webder) ![image compression](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxt.bloat.cat%2Fconfiguration%2Fjson&query=proxy.img_compress&label=image%20compression)
- <https://txt.clovius.club> ![version](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxt.clovius.club%2Fconfiguration%2Fjson&query=version&label=version) ![protocol](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxt.clovius.club%2Fconfiguration%2Fjson&query=protocol&label=protocol) ![searx](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxt.clovius.club%2Fconfiguration%2Fjson&query=third_party.searx_url&label=searx) ![webder](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxt.clovius.club%2Fconfiguration%2Fjson&query=third_party.webder_url&label=webder) ![image compression](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxt.clovius.club%2Fconfiguration%2Fjson&query=proxy.img_compress&label=image%20compression)
- <https://txtd.lumaeris.com> ![version](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxtd.lumaeris.com%2Fconfiguration%2Fjson&query=version&label=version) ![protocol](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxtd.lumaeris.com%2Fconfiguration%2Fjson&query=protocol&label=protocol) ![searx](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxtd.lumaeris.com%2Fconfiguration%2Fjson&query=third_party.searx_url&label=searx) ![webder](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxtd.lumaeris.com%2Fconfiguration%2Fjson&query=third_party.webder_url&label=webder) ![image compression](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxtd.lumaeris.com%2Fconfiguration%2Fjson&query=proxy.img_compress&label=image%20compression)

View file

@ -20,29 +20,24 @@ async function run() {
instances.map(async (instance) => {
if (typeof instance === "string") {
const config_url = instance + "/configuration/json";
try {
await fetch(config_url).then((res) => res.json());
return `- <${instance}> ${badge(
config_url,
"version",
"version"
)} ${badge(config_url, "protocol", "protocol")} ${badge(
config_url,
"searx",
"third_party.searx_url"
)} ${badge(
config_url,
"webder",
"third_party.webder_url"
)} ${badge(
config_url,
"image compression",
"proxy.img_compress"
)}`;
return `- <${instance}> ${badge(
config_url,
"version",
"version"
)} ${badge(config_url, "protocol", "protocol")} ${badge(
config_url,
"searx",
"third_party.searx_url"
)} ${badge(
config_url,
"webder",
"third_party.webder_url"
)} ${badge(
config_url,
"image compression",
"proxy.img_compress"
)}`;
} catch {
return `- <${instance}> (unsupported configuration version)`;
}
}
})
)

View file

@ -2,5 +2,5 @@
"https://txt.dc09.ru",
"https://txt.bloat.cat",
"https://txt.clovius.club",
"https://txtd.lumaeris.com/"
"https://txtd.lumaeris.com"
]