mirror of
https://git.luna-app.eu/50n50/sources
synced 2025-12-21 21:26:19 +01:00
Upload
This commit is contained in:
commit
09c423e95a
276 changed files with 54396 additions and 0 deletions
82
iyinghua/iyinghua.js
Normal file
82
iyinghua/iyinghua.js
Normal file
|
|
@ -0,0 +1,82 @@
|
|||
async function searchResults(keyword) {
|
||||
const results = [];
|
||||
const response = await fetchv2(`http://www.iyinghua.com/search/${keyword}/`);
|
||||
const html = await response.text();
|
||||
|
||||
const regex = /<a href="(\/show\/\d+\.html)"><img src="(http[^"]+)" alt="([^"]+)"><\/a><h2><a href="[^"]+" title="([^"]+)"/g;
|
||||
|
||||
let match;
|
||||
while ((match = regex.exec(html)) !== null) {
|
||||
results.push({
|
||||
title: match[4].trim(),
|
||||
image: match[2].trim(),
|
||||
href: `http://www.iyinghua.com${match[1].trim()}`
|
||||
});
|
||||
}
|
||||
|
||||
return JSON.stringify(results);
|
||||
}
|
||||
|
||||
async function extractDetails(url) {
|
||||
const results = [];
|
||||
const response = await fetchv2(url);
|
||||
const html = await response.text();
|
||||
|
||||
const descriptionRegex = /<div class="info">([^<]+)<\/div>/;
|
||||
const descriptionMatch = descriptionRegex.exec(html);
|
||||
const description = descriptionMatch ? descriptionMatch[1].trim() : 'N/A';
|
||||
|
||||
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 episodeRegex = /<li><a href="(\/v\/\d+-([\dpv]+)\.html)" target="_blank">([^<]+)<\/a><\/li>/g;
|
||||
|
||||
let match;
|
||||
let episodeCount = 0;
|
||||
|
||||
while ((match = episodeRegex.exec(html)) !== null) {
|
||||
const href = `http://www.iyinghua.com${match[1].trim()}`;
|
||||
const number = match[2].match(/^\d+$/) ? parseInt(match[2], 10) : null;
|
||||
|
||||
if (number !== null) {
|
||||
results.push({ href, number });
|
||||
} else {
|
||||
episodeCount++;
|
||||
}
|
||||
}
|
||||
|
||||
if (results.length === 0 && episodeCount > 0) {
|
||||
episodeRegex.lastIndex = 0;
|
||||
let index = 1;
|
||||
while ((match = episodeRegex.exec(html)) !== null) {
|
||||
results.push({
|
||||
href: `http://www.iyinghua.com${match[1].trim()}`,
|
||||
number: index++
|
||||
});
|
||||
}
|
||||
}
|
||||
results.reverse();
|
||||
return JSON.stringify(results);
|
||||
}
|
||||
|
||||
async function extractStreamUrl(url) {
|
||||
const response = await fetchv2(url);
|
||||
const html = await response.text();
|
||||
console.error(html);
|
||||
|
||||
const streamRegex = /data-vid="([^"]+)"/;
|
||||
const match = streamRegex.exec(html);
|
||||
return match ? match[1] : null;
|
||||
}
|
||||
|
||||
18
iyinghua/iyinghua.json
Normal file
18
iyinghua/iyinghua.json
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"sourceName": "Iyinghua",
|
||||
"iconUrl": "https://files.catbox.moe/mh7uxf.ico",
|
||||
"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": "hhttp://www.iyinghua.com/",
|
||||
"searchBaseUrl": "http://www.iyinghua.com/%s",
|
||||
"scriptUrl": "https://gitlab.com/50n50/sources/-/raw/main/iyinghua/iyinghua.js",
|
||||
"asyncJS": true,
|
||||
"type": "anime",
|
||||
"note": "SOME STUFF IS REGION LOCKED"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue