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
kawaiines/kawaiines.js
Normal file
82
kawaiines/kawaiines.js
Normal file
|
|
@ -0,0 +1,82 @@
|
|||
async function searchResults(keyword) {
|
||||
try {
|
||||
const response = await fetchv2("https://kawaiines.onrender.com/api/anime");
|
||||
const data = await response.json();
|
||||
|
||||
const results = data
|
||||
.filter(anime => anime.title.toLowerCase().includes(keyword.toLowerCase()))
|
||||
.map(anime => ({
|
||||
title: anime.title,
|
||||
image: anime.image,
|
||||
href: anime.animeUrl
|
||||
}));
|
||||
|
||||
return JSON.stringify(results);
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
return JSON.stringify([{
|
||||
title: "Error",
|
||||
image: "Error",
|
||||
href: "Error"
|
||||
}]);
|
||||
}
|
||||
}
|
||||
|
||||
async function extractDetails(id) {
|
||||
try {
|
||||
const response = await fetchv2(`https://kawaiines.onrender.com/api/anime/url/${id}`);
|
||||
const json = await response.json();
|
||||
|
||||
return JSON.stringify([{
|
||||
description: json.description || "N/A",
|
||||
aliases: "N/A",
|
||||
airdate: json.date || "N/A"
|
||||
}]);
|
||||
} catch (err) {
|
||||
return JSON.stringify([{
|
||||
description: "Error",
|
||||
aliases: "Error",
|
||||
airdate: "Error"
|
||||
}]);
|
||||
}
|
||||
}
|
||||
|
||||
async function extractEpisodes(id) {
|
||||
const results = [];
|
||||
try {
|
||||
const response = await fetchv2(`https://kawaiines.onrender.com/api/anime/url/${id}`);
|
||||
const json = await response.json();
|
||||
|
||||
for (const [number, url] of Object.entries(json.videoIds)) {
|
||||
if (url.includes("drive.google.com")) continue;
|
||||
|
||||
let href = url;
|
||||
if (url.includes("strmup.cc/")) {
|
||||
href = url.split("/").pop();
|
||||
}
|
||||
|
||||
results.push({
|
||||
href: href,
|
||||
number: parseInt(number, 10)
|
||||
});
|
||||
}
|
||||
|
||||
return JSON.stringify(results);
|
||||
} catch (err) {
|
||||
return JSON.stringify([{
|
||||
href: "Error",
|
||||
number: "Error"
|
||||
}]);
|
||||
}
|
||||
}
|
||||
|
||||
async function extractStreamUrl(id) {
|
||||
try {
|
||||
const response = await fetchv2(`https://strmup.cc/ajax/stream?filecode=${id}`);
|
||||
const json = await response.json();
|
||||
|
||||
return json.streaming_url || "https://error.org/";
|
||||
} catch (err) {
|
||||
return "https://error.org/";
|
||||
}
|
||||
}
|
||||
19
kawaiines/kawaiines.json
Normal file
19
kawaiines/kawaiines.json
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
"sourceName": "Kawaiines",
|
||||
"iconUrl": "https://kawaiines.in/logo.png",
|
||||
"author": {
|
||||
"name": "50/50",
|
||||
"icon": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ3122kQwublLkZ6rf1fEpUP79BxZOFmH9BSA&s"
|
||||
},
|
||||
"version": "1.0.0",
|
||||
"language": "Hindi",
|
||||
"streamType": "HLS",
|
||||
"quality": "1080p",
|
||||
"baseUrl": "https://kawaiines.in/",
|
||||
"searchBaseUrl": "https://kawaiines.in/",
|
||||
"scriptUrl": "https://gitlab.com/50n50/sources/-/raw/main/kawaiines/kawaiines.js",
|
||||
"type": "anime",
|
||||
"asyncJS": true,
|
||||
"softsub": false,
|
||||
"downloadSupport": false
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue