This commit is contained in:
50/50 2025-10-11 17:18:45 +02:00
commit 09c423e95a
276 changed files with 54396 additions and 0 deletions

86
anoboye/anoboye.js Normal file
View file

@ -0,0 +1,86 @@
async function searchResults(keyword) {
const results = [];
const response = await fetchv2(`https://anoboye.com/?s=${keyword}`);
const html = await response.text();
const regex = /<article class="bs"[^>]*>.*?<a href="([^"]+)"[^>]*>.*?<img src="([^"]+)"[^>]*>.*?<h2[^>]*>(.*?)<\/h2>/gs;
let match;
while ((match = regex.exec(html)) !== null) {
results.push({
title: match[3].trim(),
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 match = html.match(/<div class="entry-content"[^>]*>([\s\S]*?)<\/div>/);
let description = "N/A";
if (match) {
description = match[1]
.replace(/<[^>]+>/g, '')
.replace(/&#(\d+);/g, (_, code) => String.fromCharCode(code))
.replace(/&quot;/g, '"')
.replace(/&apos;/g, "'")
.replace(/&amp;/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();
const regex = /<a href="([^"]+)">\s*<div class="epl-num">([\d.]+)<\/div>/g;
let match;
while ((match = regex.exec(html)) !== null) {
results.push({
href: match[1].trim(),
number: parseInt(match[2], 10)
});
}
results.reverse();
return JSON.stringify(results);
}
async function extractStreamUrl(url) {
try {
const response = await fetchv2(url);
const html = await response.text();
const iframeMatch = html.match(/<iframe[^>]+src=["']([^"']+)["']/i);
if (!iframeMatch) throw new Error("iframe not found");
const iframeUrl = iframeMatch[1];
const iframeResponse = await fetchv2(iframeUrl);
const iframeHtml = await iframeResponse.text();
const videoMatch = iframeHtml.match(/videoUrl:\s*["']([^"']+)["']/i);
if (!videoMatch) throw new Error("videoUrl not found");
return videoMatch[1].replace(/\\/g, "");
} catch (err) {
return "https://files.catbox.moe/avolvc.mp4";
}
}

19
anoboye/anoboye.json Normal file
View file

@ -0,0 +1,19 @@
{
"sourceName": "Anoboye",
"iconUrl": "https://i3.wp.com/anoboye.com/wp-content/uploads/2025/05/Anoboye-300x300.jpg",
"author": {
"name": "50/50",
"icon": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ3122kQwublLkZ6rf1fEpUP79BxZOFmH9BSA&s"
},
"version": "1.0.0",
"language": "Chinese",
"streamType": "HLS",
"quality": "1080p",
"baseUrl": "https://anoboye.com/",
"searchBaseUrl": "https://anoboye.com/",
"scriptUrl": "https://gitlab.com/50n50/sources/-/raw/main/anoboye/anoboye.js",
"type": "anime",
"asyncJS": true,
"softsub": false,
"downloadSupport": false
}