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 {
|
try {
|
||||||
const response = await fetch("https://comix.to/api/v2/manga?order[relevance]=desc&keyword=" + encodeURIComponent(keyword) + "&limit=100");
|
const response = await fetch("https://comix.to/api/v2/manga?order[relevance]=desc&keyword=" + encodeURIComponent(keyword) + "&limit=100");
|
||||||
const data = await response.json();
|
const data = await response.json();
|
||||||
@@ -15,7 +15,7 @@ async function searchContent(keyword, page = 0) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getContentData(slug) {
|
async function extractDetails(slug) {
|
||||||
try {
|
try {
|
||||||
const response = await fetch("https://comix.to/title/" + slug);
|
const response = await fetch("https://comix.to/title/" + slug);
|
||||||
const html = await response.text();
|
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 hash = url.split("-")[0]
|
||||||
const results = [];
|
const results = [];
|
||||||
try {
|
try {
|
||||||
@@ -97,7 +97,7 @@ async function getChapters(url) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getChapterImages(url) {
|
async function extractImages(url) {
|
||||||
const results = [];
|
const results = [];
|
||||||
try {
|
try {
|
||||||
const response = await fetch("https://comix.to/title/" + url);
|
const response = await fetch("https://comix.to/title/" + url);
|
||||||
|
|||||||
Reference in New Issue
Block a user