added manga and added sdk source

This commit is contained in:
2026-10-14 22:29:04 -07:00
parent efc332a9fa
commit 4b255c7ee0
6 changed files with 376 additions and 8 deletions

View File

@@ -1,6 +1,7 @@
import SOURCES, { SOURCE_MAP } from "./config.js";
import { fetchDownloads } from "./downloads/downloads.js";
import { probeSource } from "./health.js";
import { getChapterPages, getMangaDetails, searchManga } from "./manga/atsu.js";
import { fetchSubtitles, getSubPathsMovie, getSubPathsTv } from "./subtitles.js";
import { createStreamArgs } from "./utils/helpers.js";
@@ -65,4 +66,13 @@ export default class VylaSDK {
async getDownloads(id, s = null, e = null) {
return await fetchDownloads(this, id, s, e);
}
async searchManga(query, page = 1, perPage = 12) {
return await searchManga(query, page, perPage);
}
async getManga(id) {
return await getMangaDetails(id);
}
async getMangaChapter(mangaId, chapterId) {
return await getChapterPages(mangaId, chapterId);
}
}