diff --git a/dora-video/dora-video.js b/dora-video/dora-video.js index d3e700f..ab011bb 100644 --- a/dora-video/dora-video.js +++ b/dora-video/dora-video.js @@ -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 = /
.*?.*?data-url="(.*?)".*?(.*?)<\/span>/gs; + const regex = /
.*?.*?]+data-url="(.*?)"[^>]*>.*?(.*?)<\/span>/gs; let match; while ((match = regex.exec(html)) !== null) { results.push({ title: (match[3] || "").trim().replace(/a<\/font>||<\/font>/g, " "), - image: "https://i.ibb.co/ds7r6YJy/Search-has-no-images.png", + image: match[2].trim(), href: match[1].trim() }); }