gelbooru should work, remove caching, fix random

This commit is contained in:
creations 2025-04-03 16:05:41 -04:00
parent e6acb47796
commit c34ddea659
Signed by: creations
GPG key ID: 8F553AA4320FC711
14 changed files with 480 additions and 401 deletions

View file

@ -1,6 +1,6 @@
// cSpell:disable
import { getE621Auth } from "./environment";
import { gelBooruAUTH, getE621Auth } from "@config/environment";
const booruDefaults: IBooruDefaults = {
search: "index.php?page=dapi&s=post&q=index&json=1",
@ -70,4 +70,13 @@ export const booruConfig: IBooruConfigMap = {
},
auth: getE621Auth(),
},
"gelbooru.com": {
enabled: true,
name: "gelbooru.com",
aliases: ["gelbooru", "gb", "gelboorucom"],
endpoint: "gelbooru.com",
autocomplete: "gelbooru.com/index.php?page=autocomplete&term=",
functions: booruDefaults,
auth: gelBooruAUTH(),
},
};