Update dora-video/dora-video.js
Fetch and Save Remote Content / fetch (push) Has been cancelled

This commit is contained in:
aka paul
2026-04-18 18:31:13 +00:00
parent 5605f80b0f
commit 17b3606d4f
+2 -2
View File
@@ -3,13 +3,13 @@ async function searchResults(keyword) {
const response = await fetchv2(`https://www.dora-video.cn/search/${keyword}/`);
const html = await response.text();
const regex = /<div class="card-img-bili">.*?<a href="(.*?)">.*?data-url="(.*?)".*?<span class="title">(.*?)<\/span>/gs;
const regex = /<div class="card-img-bili">.*?<a href="(.*?)">.*?<img[^>]+data-url="(.*?)"[^>]*>.*?<span class="title">(.*?)<\/span>/gs;
let match;
while ((match = regex.exec(html)) !== null) {
results.push({
title: (match[3] || "").trim().replace(/<font color="red">a<\/font>|<font color="red">|<\/font>/g, " "),
image: "https://i.ibb.co/ds7r6YJy/Search-has-no-images.png",
image: match[2].trim(),
href: match[1].trim()
});
}