mirror of
https://git.luna-app.eu/50n50/sources
synced 2025-12-21 13:16:21 +01:00
Upload
This commit is contained in:
commit
09c423e95a
276 changed files with 54396 additions and 0 deletions
102
movi/movi.js
Normal file
102
movi/movi.js
Normal file
|
|
@ -0,0 +1,102 @@
|
|||
function decodeHtml(html) {
|
||||
return html.replace(/&#(\d+);/g, (_, dec) => String.fromCharCode(dec))
|
||||
.replace(/&/g, "&")
|
||||
.replace(/"/g, '"')
|
||||
.replace(/'/g, "'")
|
||||
.replace(/</g, "<")
|
||||
.replace(/>/g, ">");
|
||||
}
|
||||
|
||||
async function searchResults(keyword) {
|
||||
const results = [];
|
||||
try {
|
||||
const response = await fetchv2("https://www.movi.pk/?s=" + encodeURIComponent(keyword));
|
||||
const html = await response.text();
|
||||
|
||||
const regex = /<div data-movie-id="\d+" class="ml-item">[\s\S]*?<a href="(https:\/\/www\.movi\.pk\/[^"]+)"[^>]*>[\s\S]*?<img [^>]*data-original="([^"]+)"[^>]*>[\s\S]*?<h2>([^<]+)<\/h2>/g;
|
||||
|
||||
let match;
|
||||
while ((match = regex.exec(html)) !== null) {
|
||||
results.push({
|
||||
href: match[1].trim(),
|
||||
image: match[2].trim(),
|
||||
title: decodeHtml(match[3].trim())
|
||||
});
|
||||
}
|
||||
|
||||
return JSON.stringify(results);
|
||||
} catch (err) {
|
||||
return JSON.stringify([{
|
||||
title: "Error",
|
||||
image: "Error",
|
||||
href: "Error"
|
||||
}]);
|
||||
}
|
||||
}
|
||||
|
||||
async function extractDetails(url) {
|
||||
try {
|
||||
const response = await fetchv2(url);
|
||||
const html = await response.text();
|
||||
|
||||
const match = html.match(/<p class="f-desc">(.*?)<\/p>/s);
|
||||
const description = match ? match[1].trim() : "N/A";
|
||||
|
||||
return JSON.stringify([{
|
||||
description: decodeHtml(description),
|
||||
aliases: "N/A",
|
||||
airdate: "N/A"
|
||||
}]);
|
||||
} catch (err) {
|
||||
return JSON.stringify([{
|
||||
description: "Error",
|
||||
aliases: "Error",
|
||||
airdate: "Error"
|
||||
}]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
async function extractEpisodes(url) {
|
||||
try {
|
||||
const response = await fetchv2(url);
|
||||
const html = await response.text();
|
||||
|
||||
const match = html.match(/<iframe\s+src=(https?:\/\/lizer[^\s>]+)[^>]*>/i);
|
||||
const href = match ? match[1].trim() : url;
|
||||
|
||||
return JSON.stringify([{
|
||||
href: href,
|
||||
number: 1
|
||||
}]);
|
||||
} catch (err) {
|
||||
return JSON.stringify([{
|
||||
href: "Error",
|
||||
number: "Error"
|
||||
}]);
|
||||
}
|
||||
}
|
||||
|
||||
async function extractStreamUrl(url) {
|
||||
try {
|
||||
const response = await fetchv2(url);
|
||||
const html = await response.text();
|
||||
|
||||
const match = html.match(/var\s+video\s*=\s*(\{.*?\});/s);
|
||||
if (!match) throw new Error("Video JSON not found");
|
||||
|
||||
const videoJson = JSON.parse(match[1]);
|
||||
const uid = videoJson.uid;
|
||||
const hash = videoJson.md5;
|
||||
|
||||
const m3u8Path = `m3u8/${uid}/${hash}/720p/720p.m3u8?id=`;
|
||||
|
||||
const encoded = btoa(m3u8Path);
|
||||
|
||||
return `https://lizer123.site/stream/${encoded}`;
|
||||
} catch (err) {
|
||||
return "https://files.catbox.moe/avolvc.mp4";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
19
movi/movi.json
Normal file
19
movi/movi.json
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
"sourceName": "Movi",
|
||||
"iconUrl": "https://www.movi.pk/wp-content/uploads/2024/12/favicon.png",
|
||||
"author": {
|
||||
"name": "50/50",
|
||||
"icon": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ3122kQwublLkZ6rf1fEpUP79BxZOFmH9BSA&s"
|
||||
},
|
||||
"version": "1.0.0",
|
||||
"language": "Hindi (DUB/SUB)",
|
||||
"streamType": "HLS",
|
||||
"quality": "1080p",
|
||||
"baseUrl": "https://www.movi.pk/",
|
||||
"searchBaseUrl": "https://www.movi.pk/",
|
||||
"scriptUrl": "https://gitlab.com/50n50/sources/-/raw/main/movi/movi.js",
|
||||
"type": "movies",
|
||||
"asyncJS": true,
|
||||
"softsub": false,
|
||||
"downloadSupport": false
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue