update mangas
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
async function searchContent(keyword, page=0) {
|
||||
async function searchResults(keyword, page=0) {
|
||||
const results = [];
|
||||
try {
|
||||
const offset = page * 100;
|
||||
@@ -46,7 +46,7 @@ async function searchContent(keyword, page=0) {
|
||||
}
|
||||
}
|
||||
|
||||
async function getContentData(ID) {
|
||||
async function extractDetails(ID) {
|
||||
try {
|
||||
const response = await fetch(`https://api.mangadex.org/manga/${ID}?includes[]=artist&includes[]=author&includes[]=cover_art`);
|
||||
const data = await response.json();
|
||||
@@ -77,7 +77,7 @@ async function getContentData(ID) {
|
||||
}
|
||||
}
|
||||
|
||||
async function getChapters(url) {
|
||||
async function extractChapters(url) {
|
||||
const results = [];
|
||||
try {
|
||||
const limit = 100;
|
||||
@@ -147,7 +147,7 @@ async function getChapters(url) {
|
||||
}
|
||||
}
|
||||
|
||||
async function getChapterImages(chapterId) {
|
||||
async function extractImages(chapterId) {
|
||||
try {
|
||||
const apiEndpoint = `https://api.mangadex.org/at-home/server/${chapterId}`;
|
||||
const apiResponse = await fetch(apiEndpoint);
|
||||
|
||||
Reference in New Issue
Block a user