Files
STTracker/plugins/mangabaka/index.ts
T

21 lines
637 B
TypeScript

import { definePlugin } from "@sttracker/plugin-sdk/types";
import { lookup } from "./src/lookup.ts";
import { pull, pullChanges } from "./src/pull.ts";
export default definePlugin({
manifest: {
id: "mangabaka",
name: "MangaBaka",
version: "0.1.0",
sdkVersion: 1,
rateLimit: { perMinute: 150 },
mediaTypes: ["manga", "comic"],
capabilities: ["pull", "pullChanges", "lookup"],
config: [{ key: "token", label: "API token", type: "secret", required: true, help: "Sent as the x-api-key header." }],
attribution: "Manga data from MangaBaka (CC BY-NC-SA 4.0).",
},
pull,
pullChanges,
lookup,
});