fix(animals): replace dead catboys/waifu.pics endpoints with nekos.best
- api.catboys.com/img fails TLS (unrecognized_name) -> nekos.best/api/v2/neko
- api.waifu.pics/sfw/waifu does not resolve -> nekos.best/api/v2/waifu
- nekos.best returns HTTP 200 for okhttp/5.5.0 UA, shape {results:[{url}]}
This commit is contained in:
parent
ec25d9e8d3
commit
405590f5da
1 changed files with 2 additions and 2 deletions
|
|
@ -110,12 +110,12 @@ public class AnimalApi {
|
||||||
WAIFU(
|
WAIFU(
|
||||||
"🌸",
|
"🌸",
|
||||||
List.of(
|
List.of(
|
||||||
new Endpoint("https://api.waifu.pics/sfw/waifu", objectKey("url")),
|
new Endpoint("https://nekos.best/api/v2/waifu", firstArrayObjectKey("url")),
|
||||||
new Endpoint(NEKOS_BASE + "waifu", objectKey("url")))),
|
new Endpoint(NEKOS_BASE + "waifu", objectKey("url")))),
|
||||||
CATBOY(
|
CATBOY(
|
||||||
"😼",
|
"😼",
|
||||||
List.of(
|
List.of(
|
||||||
new Endpoint("https://api.catboys.com/img", objectKey("url")),
|
new Endpoint("https://nekos.best/api/v2/neko", firstArrayObjectKey("url")),
|
||||||
new Endpoint(NEKOS_BASE + "neko", objectKey("url"))));
|
new Endpoint(NEKOS_BASE + "neko", objectKey("url"))));
|
||||||
|
|
||||||
private final String emoji;
|
private final String emoji;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue