mirror of
https://git.luna-app.eu/50n50/sources
synced 2025-12-21 21:26:19 +01:00
Update mangabuddy/mangabuddy.js
This commit is contained in:
parent
735a6fd210
commit
207fd44e71
1 changed files with 4 additions and 4 deletions
|
|
@ -10,7 +10,7 @@ async function searchContent(keyword, page=0) {
|
|||
while ((match = regex.exec(html)) !== null) {
|
||||
results.push({
|
||||
id: "https://mangabuddy.com" + match[1].trim(),
|
||||
imageURL: match[2].trim(),
|
||||
imageURL: "https://passthrough-worker.simplepostrequest.workers.dev/?simple=" + match[2].trim() + "?referrer=https://mangabuddy.com",
|
||||
title: match[3].replace(/<[^>]+>/g, '').trim()
|
||||
});
|
||||
}
|
||||
|
|
@ -88,9 +88,9 @@ async function getChapterImages(url) {
|
|||
const regex = /var chapImages = '([^']*)'/;
|
||||
const match = regex.exec(html);
|
||||
if (match) {
|
||||
const imagesString = match[1];
|
||||
const images = imagesString.split(',');
|
||||
results.push(...images);
|
||||
const images = match[1].split(',');
|
||||
const processedImages = images.map(img => "https://passthrough-worker.simplepostrequest.workers.dev/?simple=" + img.trim() + "?referrer=https://mangabuddy.com");
|
||||
results.push(...processedImages);
|
||||
}
|
||||
|
||||
return results;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue