Update comix/comix.js

This commit is contained in:
aka paul
2026-03-03 18:20:41 +00:00
parent 9e550f6517
commit 007c21a192
+4 -4
View File
@@ -1,4 +1,4 @@
async function searchContent(keyword, page = 0) {
async function searchResults(keyword, page = 0) {
try {
const response = await fetch("https://comix.to/api/v2/manga?order[relevance]=desc&keyword=" + encodeURIComponent(keyword) + "&limit=100");
const data = await response.json();
@@ -15,7 +15,7 @@ async function searchContent(keyword, page = 0) {
}
}
async function getContentData(slug) {
async function extractDetails(slug) {
try {
const response = await fetch("https://comix.to/title/" + slug);
const html = await response.text();
@@ -54,7 +54,7 @@ async function getContentData(slug) {
}
}
async function getChapters(url) {
async function extractChapters(url) {
const hash = url.split("-")[0]
const results = [];
try {
@@ -97,7 +97,7 @@ async function getChapters(url) {
}
}
async function getChapterImages(url) {
async function extractImages(url) {
const results = [];
try {
const response = await fetch("https://comix.to/title/" + url);