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
79
toontales/toontales.js
Normal file
79
toontales/toontales.js
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
async function searchResults(keyword) {
|
||||
const results = [];
|
||||
try {
|
||||
const response = await fetchv2(`https://www.toontales.net/?s=${keyword}&search=Search`);
|
||||
const html = await response.text();
|
||||
|
||||
const matches = html.matchAll(/<a href="([^"]+)">\s*<img src="([^"]+)"[^>]*alt="([^"]*)"[^>]*>/g);
|
||||
|
||||
for (const match of matches) {
|
||||
const href = match[1].trim();
|
||||
const image = match[2].trim();
|
||||
const title = match[3].trim();
|
||||
|
||||
const imageUrl = image.includes('noimage.jpg') ? null : image;
|
||||
|
||||
results.push({
|
||||
href: href,
|
||||
image: imageUrl,
|
||||
title: title || 'No Title'
|
||||
});
|
||||
}
|
||||
|
||||
return JSON.stringify(results);
|
||||
} catch (err) {
|
||||
return JSON.stringify([{
|
||||
title: "Error: " + err.message,
|
||||
image: "Error",
|
||||
href: "Error"
|
||||
}]);
|
||||
}
|
||||
}
|
||||
async function extractDetails(url) {
|
||||
try {
|
||||
const response = await fetchv2(url);
|
||||
const html = await response.text();
|
||||
|
||||
const descriptionMatch = html.match(/<meta name="description" content="([^"]*)"[^>]*\/>/);
|
||||
const description = descriptionMatch ? descriptionMatch[1].trim() : "N/A";
|
||||
|
||||
return JSON.stringify([{
|
||||
description: description,
|
||||
aliases: "N/A",
|
||||
airdate: "N/A"
|
||||
}]);
|
||||
} catch (err) {
|
||||
return JSON.stringify([{
|
||||
description: "Error",
|
||||
aliases: "Error",
|
||||
airdate: "Error"
|
||||
}]);
|
||||
}
|
||||
}
|
||||
|
||||
async function extractEpisodes(url) {
|
||||
return JSON.stringify([{
|
||||
number: 1,
|
||||
href: url
|
||||
}]);
|
||||
}
|
||||
|
||||
async function extractStreamUrl(url) {
|
||||
try {
|
||||
const response = await fetchv2(url);
|
||||
const html = await response.text();
|
||||
|
||||
let urlMatch = html.match(/file:\s*"([^"]+\.mp4)"/);
|
||||
if (!urlMatch) {
|
||||
urlMatch = html.match(/"contentUrl"\s*:\s*"([^"\\]*(?:\\.[^"\\]*)*\.mp4)"/);
|
||||
}
|
||||
|
||||
const extractedUrl = urlMatch ? urlMatch[1] : null;
|
||||
|
||||
return (extractedUrl && extractedUrl.endsWith('.mp4'))
|
||||
? extractedUrl
|
||||
: "i wanna kms";
|
||||
} catch (err) {
|
||||
return "https://files.catbox.moe/avolvc.mp4";
|
||||
}
|
||||
}
|
||||
20
toontales/toontales.json
Normal file
20
toontales/toontales.json
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"sourceName": "ToonTales",
|
||||
"iconUrl": "https://www.toontales.net/wp-content/uploads/cropped-favicon-192x192.png",
|
||||
"author": {
|
||||
"name": "50/50",
|
||||
"icon": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ3122kQwublLkZ6rf1fEpUP79BxZOFmH9BSA&s"
|
||||
},
|
||||
"version": "1.0.0",
|
||||
"language": "English",
|
||||
"streamType": "mp4",
|
||||
"encrypted":true,
|
||||
"quality": "1080p",
|
||||
"baseUrl": "https://www.toontales.net/",
|
||||
"searchBaseUrl": "https://www.toontales.net/",
|
||||
"scriptUrl": "https://gitlab.com/50n50/sources/-/raw/main/toontales/toontales.js",
|
||||
"type": "shows",
|
||||
"asyncJS": true,
|
||||
"softsub": false,
|
||||
"downloadSupport": true
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue