feat(animetosho): add English/Japanese subtitle download integration (#159)

This commit is contained in:
2026-07-12 00:48:12 -07:00
committed by GitHub
parent 6ab3d823a4
commit 4b7f750919
80 changed files with 2647 additions and 13 deletions
+42
View File
@@ -240,3 +240,45 @@ export type JimakuApiResponse<T> = { ok: true; data: T } | { ok: false; error: J
export type JimakuDownloadResult =
| { ok: true; path: string }
| { ok: false; error: JimakuApiError };
export interface AnimetoshoSearchQuery {
query: string;
}
export interface AnimetoshoEntry {
id: number;
title: string;
timestamp: number | null;
totalSize: number | null;
numFiles: number | null;
}
export interface AnimetoshoFilesQuery {
entryId: number;
}
export interface AnimetoshoSubtitleFile {
attachmentId: number;
filename: string;
lang: string;
trackName: string | null;
size: number;
url: string;
sourceFilename: string;
}
export interface AnimetoshoDownloadQuery {
entryId: number;
url: string;
name: string;
lang?: string;
}
export type AnimetoshoApiResponse<T> = JimakuApiResponse<T>;
export type AnimetoshoDownloadResult = JimakuDownloadResult;
export interface AnimetoshoConfig {
apiBaseUrl?: string;
maxSearchResults?: number;
}