refactor(tsukihime): swap Animetosho backend for TsukiHime API (#165)

This commit is contained in:
2026-07-13 22:03:35 -07:00
committed by GitHub
parent 49b926e08c
commit 2e2ee3f028
90 changed files with 2253 additions and 1695 deletions
+9 -8
View File
@@ -241,23 +241,24 @@ export type JimakuDownloadResult =
| { ok: true; path: string }
| { ok: false; error: JimakuApiError };
export interface AnimetoshoSearchQuery {
export interface TsukihimeSearchQuery {
query: string;
}
export interface AnimetoshoEntry {
export interface TsukihimeEntry {
id: number;
title: string;
timestamp: number | null;
totalSize: number | null;
numFiles: number | null;
sublangs: string[];
}
export interface AnimetoshoFilesQuery {
export interface TsukihimeFilesQuery {
entryId: number;
}
export interface AnimetoshoSubtitleFile {
export interface TsukihimeSubtitleFile {
attachmentId: number;
filename: string;
lang: string;
@@ -267,18 +268,18 @@ export interface AnimetoshoSubtitleFile {
sourceFilename: string;
}
export interface AnimetoshoDownloadQuery {
export interface TsukihimeDownloadQuery {
entryId: number;
url: string;
name: string;
lang?: string;
}
export type AnimetoshoApiResponse<T> = JimakuApiResponse<T>;
export type TsukihimeApiResponse<T> = JimakuApiResponse<T>;
export type AnimetoshoDownloadResult = JimakuDownloadResult;
export type TsukihimeDownloadResult = JimakuDownloadResult;
export interface AnimetoshoConfig {
export interface TsukihimeConfig {
apiBaseUrl?: string;
maxSearchResults?: number;
}