mirror of
https://gitlab.com/vyla-entertainment/documentation.git
synced 2026-11-20 01:17:23 -05:00
removed manga and fixed image links
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
## Class: `VylaSDK`
|
||||
|
||||
The primary entry point for media scraping, subtitle retrieval, downloads, and manga discovery.
|
||||
The primary entry point for media scraping, subtitle retrieval, and downloads.
|
||||
|
||||
```typescript
|
||||
import VylaSDK from '@vyla-entertainment/sdk';
|
||||
@@ -143,28 +143,6 @@ Concurrently probes all active (non-disabled) sources and returns a health map k
|
||||
|
||||
---
|
||||
|
||||
### Manga Methods
|
||||
|
||||
#### `searchManga(query, page?, perPage?)`
|
||||
```typescript
|
||||
async searchManga(query: string, page?: number, perPage?: number): Promise<MangaSearchResult>
|
||||
```
|
||||
Queries the manga catalog via `atsu.moe` using Chrome 131 TLS fingerprinting.
|
||||
|
||||
#### `getManga(id)`
|
||||
```typescript
|
||||
async getManga(id: string): Promise<MangaDetails>
|
||||
```
|
||||
Retrieves full manga details, authors, genres, tags, and chapter list.
|
||||
|
||||
#### `getMangaChapter(mangaId, chapterId)`
|
||||
```typescript
|
||||
async getMangaChapter(mangaId: string, chapterId: string): Promise<MangaChapterPages>
|
||||
```
|
||||
Resolves ordered image URLs and dimensions for all pages in a chapter.
|
||||
|
||||
---
|
||||
|
||||
## Config & Embed Exports
|
||||
|
||||
### `src/config.js`
|
||||
@@ -304,72 +282,4 @@ export interface ProbeResult {
|
||||
}
|
||||
|
||||
export type ProbeAllResult = Record<string, ProbeResult>;
|
||||
```
|
||||
|
||||
### `Interfaces: Manga`
|
||||
|
||||
```typescript
|
||||
export interface MangaSearchItem {
|
||||
id: string;
|
||||
title: string;
|
||||
englishTitle: string | null;
|
||||
authors: string[];
|
||||
type: string;
|
||||
medium: string;
|
||||
status: string;
|
||||
year: number | null;
|
||||
rating: number | null;
|
||||
popularity: number | null;
|
||||
poster: string | null;
|
||||
posterSmall: string | null;
|
||||
posterMedium: string | null;
|
||||
}
|
||||
|
||||
export interface MangaSearchResult {
|
||||
page: number;
|
||||
total: number;
|
||||
results: MangaSearchItem[];
|
||||
}
|
||||
|
||||
export interface MangaChapterSummary {
|
||||
id: string;
|
||||
number: number;
|
||||
title: string;
|
||||
pageCount: number;
|
||||
createdAt: string | null;
|
||||
}
|
||||
|
||||
export interface MangaDetails {
|
||||
id: string;
|
||||
title: string;
|
||||
englishTitle: string | null;
|
||||
synopsis: string | null;
|
||||
status: string;
|
||||
type: string;
|
||||
medium: string;
|
||||
rating: number | null;
|
||||
views: number | null;
|
||||
authors: string[];
|
||||
genres: string[];
|
||||
tags: string[];
|
||||
poster: string | null;
|
||||
totalChapters: number;
|
||||
chapters: MangaChapterSummary[];
|
||||
}
|
||||
|
||||
export interface MangaPage {
|
||||
number: number;
|
||||
url: string | null;
|
||||
width: number;
|
||||
height: number;
|
||||
aspectRatio: number;
|
||||
}
|
||||
|
||||
export interface MangaChapterPages {
|
||||
id: string;
|
||||
number: number;
|
||||
title: string;
|
||||
scanlatorId: string | null;
|
||||
pages: MangaPage[];
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user