update
Fetch and Save Remote Content / fetch (push) Successful in 39s
Sync Versions to index.json / sync-versions (push) Failing after 54s

This commit is contained in:
aka paul
2026-05-27 20:30:23 +02:00
parent caffaabc88
commit 597f279e49
113 changed files with 1207 additions and 980 deletions
+90
View File
@@ -0,0 +1,90 @@
async function searchResults(keyword) {
const results = [];
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="(.*?)">.*?<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: match[2].trim(),
href: match[1].trim()
});
}
return JSON.stringify(results);
}
async function extractDetails(url) {
const results = [];
const response = await fetchv2(url);
const html = await response.text();
const regex = /<div class="card-body">.*?<h3.*?>(.*?)<\/h3>.*?<p>(.*?)<\/p>.*?<p>(.*?)<\/p>/s;
const match = regex.exec(html);
let description = "N/A";
if (match) {
description = match[3]
.replace(/&nbsp;/g, " ")
.replace(/\s+/g, " ")
.trim();
}
results.push({
description: description,
aliases: "N/A",
airdate: "N/A"
});
return JSON.stringify(results);
}
async function extractEpisodes(url) {
const results = [];
const response = await fetchv2(url);
const html = await response.text();
console.error(html);
const regex = /<a href="([^"]+)"[ ]?class="btn btn-outline-primary btn-space">([^<]+)<\/a>/g;
let match;
let count = 1;
while ((match = regex.exec(html)) !== null) {
results.push({
href: match[1].trim(),
number: count
});
count++;
}
return JSON.stringify(results);
}
async function extractStreamUrl(url) {
const response = await fetchv2(url);
const html = await response.text();
const match = html.match(/<iframe[^>]+src="([^"]+)"[^>]*>/);
if (!match) return null;
const iframeUrl = match[1];
const headers = {
'Referer': 'https://www.dora-video.cn/'
};
const responseTwo = await fetchv2(iframeUrl, headers);
const htmlTwo = await responseTwo.text();
const m3u8Match = htmlTwo.match(/url: ['"]([^'"]+\.m3u8)['"],/);
const m3u8Url = m3u8Match[1];
console.error(m3u8Url);
return m3u8Url;
}
+24
View File
@@ -0,0 +1,24 @@
{
"sourceName": "Dora-Video",
"iconUrl": "https://www.dora-video.cn/favicon.ico",
"author": {
"name": "50/50",
"icon": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ3122kQwublLkZ6rf1fEpUP79BxZOFmH9BSA&s"
},
"version": "1.0.5",
"language": "Chinese (DUB)",
"streamType": "HLS",
"quality": "1080p",
"baseUrl": "https://www.dora-video.cn/",
"searchBaseUrl": "https://www.dora-video.cn/search/%s",
"scriptUrl": "https://git.luna-app.eu/50n50/sources/raw/branch/main/dora-video/dora-video.js",
"asyncJS": true,
"type": "anime",
"supportsMojuru": true,
"supportsDartotsu": true,
"supportsSora": true,
"supportsLuna": true,
"supportsAnymex": true,
"supportsTsumi": true,
"supportsHiyoku": true
}