mirror of
https://gitlab.com/vyla-entertainment/sdk.git
synced 2026-11-19 16:47:24 -05:00
added manga and added sdk source
This commit is contained in:
10
src/sdk.js
10
src/sdk.js
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user