forked from 50n50/sources
update mangas
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user