diff --git a/src/web/mjs/connectors/KissComic.mjs b/src/web/mjs/connectors/KissComic.mjs index e5be5d4dccf..f64fc853304 100644 --- a/src/web/mjs/connectors/KissComic.mjs +++ b/src/web/mjs/connectors/KissComic.mjs @@ -55,7 +55,15 @@ export default class KissComic extends Connector { const script = ` new Promise((resolve, reject) => { setTimeout(() => { - resolve(lstImages); + try { + resolve( + Array.from(document.querySelectorAll('#divImage img')) + .map(img => (img.src || '').replace(/=s\\d+/, '=s0')) + .filter(Boolean) + ) + } catch (err) { + reject(err); + } }, 1000); }); `;