forked from 50n50/sources
Update comix/comix.js
This commit is contained in:
+4
-4
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user