update mangas

This commit is contained in:
2026-01-14 00:07:39 +01:00
parent 6df3f100cc
commit 00b1292625
11 changed files with 44 additions and 44 deletions
+4 -4
View File
@@ -1,4 +1,4 @@
async function searchContent(input,page=0){
async function searchResults(input,page=0){
function parseSearchResults(html) {
const results = [];
const regex = /<div class="unit item-\d+">[\s\S]*?<a href="\/manga\/([\w\-\.]+)"[^>]*class="poster"[\s\S]*?<img src="([^"]*)"[^>]*alt="([^"]*)"/g;
@@ -20,7 +20,7 @@ async function searchContent(input,page=0){
return parseSearchResults(data);
}
async function getContentData(url) {
async function extractDetails(url) {
function parseHtmlData(htmlContent) {
const genreRegex = /<a href="\/genre\/[^"]*">([^<]+)<\/a>/g;
const tags = [];
@@ -69,7 +69,7 @@ async function getContentData(url) {
return parseHtmlData(data);
}
async function getChapters(url) {
async function extractChapters(url) {
const mangaIdMatch = url.match(/\.([a-z0-9]+)$/);
const mangaId = mangaIdMatch ? mangaIdMatch[1] : null;
@@ -130,7 +130,7 @@ async function getChapters(url) {
}
}
async function getChapterImages(ID) {
async function extractImages(ID) {
vrf = generate_vrf(`chapter@${ID}`);
try {