mirror of
https://git.luna-app.eu/50n50/sources
synced 2025-12-21 21:26:19 +01:00
parent
bfe9f060c0
commit
b0027ab41f
16 changed files with 113 additions and 113 deletions
24
hexa/hexa.js
24
hexa/hexa.js
|
|
@ -21,17 +21,17 @@ async function searchResults(keyword) {
|
|||
let baseUrl = null;
|
||||
|
||||
if (matchesKeyword(keyword, keywordGroups.trending)) {
|
||||
baseUrl = `https://post-eosin.vercel.app/api/proxy?url=${encodeURIComponent('https://api.themoviedb.org/3/trending/all/week?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=')}`;
|
||||
baseUrl = `https://api.themoviedb.org/3/trending/all/week?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`;
|
||||
} else if (matchesKeyword(keyword, keywordGroups.topRatedMovie)) {
|
||||
baseUrl = `https://post-eosin.vercel.app/api/proxy?url=${encodeURIComponent('https://api.themoviedb.org/3/movie/top_rated?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=')}`;
|
||||
baseUrl = `https://api.themoviedb.org/3/movie/top_rated?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`;
|
||||
} else if (matchesKeyword(keyword, keywordGroups.topRatedTV)) {
|
||||
baseUrl = `https://post-eosin.vercel.app/api/proxy?url=${encodeURIComponent('https://api.themoviedb.org/3/tv/top_rated?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=')}`;
|
||||
baseUrl = `https://api.themoviedb.org/3/tv/top_rated?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`;
|
||||
} else if (matchesKeyword(keyword, keywordGroups.popularMovie)) {
|
||||
baseUrl = `https://post-eosin.vercel.app/api/proxy?url=${encodeURIComponent('https://api.themoviedb.org/3/movie/popular?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=')}`;
|
||||
baseUrl = `https://api.themoviedb.org/3/movie/popular?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`;
|
||||
} else if (matchesKeyword(keyword, keywordGroups.popularTV)) {
|
||||
baseUrl = `https://post-eosin.vercel.app/api/proxy?url=${encodeURIComponent('https://api.themoviedb.org/3/tv/popular?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=')}`;
|
||||
baseUrl = `https://api.themoviedb.org/3/tv/popular?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`;
|
||||
} else {
|
||||
baseUrl = `https://post-eosin.vercel.app/api/proxy?url=${encodeURIComponent(`https://api.themoviedb.org/3/search/multi?api_key=9801b6b0548ad57581d111ea690c85c8&query=${encodedKeyword}&include_adult=false&page=`)}&simple=true`;
|
||||
baseUrl = `https://api.themoviedb.org/3/search/multi?api_key=9801b6b0548ad57581d111ea690c85c8&query=${encodedKeyword}&include_adult=false&page=`;
|
||||
}
|
||||
|
||||
let dataResults = [];
|
||||
|
|
@ -89,7 +89,7 @@ async function extractDetails(url) {
|
|||
if (!match) throw new Error("Invalid URL format");
|
||||
|
||||
const movieId = match[1];
|
||||
const responseText = await soraFetch(`https://post-eosin.vercel.app/api/proxy?url=${encodeURIComponent(`https://api.themoviedb.org/3/movie/${movieId}?api_key=ad301b7cc82ffe19273e55e4d4206885`)}&simple=true`);
|
||||
const responseText = await soraFetch(`https://api.themoviedb.org/3/movie/${movieId}?api_key=ad301b7cc82ffe19273e55e4d4206885`);
|
||||
const data = await responseText.json();
|
||||
|
||||
const transformedResults = [{
|
||||
|
|
@ -104,7 +104,7 @@ async function extractDetails(url) {
|
|||
if (!match) throw new Error("Invalid URL format");
|
||||
|
||||
const showId = match[1];
|
||||
const responseText = await soraFetch(`https://post-eosin.vercel.app/api/proxy?url=${encodeURIComponent(`https://api.themoviedb.org/3/tv/${showId}?api_key=ad301b7cc82ffe19273e55e4d4206885`)}&simple=true`);
|
||||
const responseText = await soraFetch(`https://api.themoviedb.org/3/tv/${showId}?api_key=ad301b7cc82ffe19273e55e4d4206885`);
|
||||
const data = await responseText.json();
|
||||
|
||||
const transformedResults = [{
|
||||
|
|
@ -150,7 +150,7 @@ async function extractEpisodes(url) {
|
|||
|
||||
const showId = match[1];
|
||||
|
||||
const showResponseText = await soraFetch(`https://post-eosin.vercel.app/api/proxy?url=${encodeURIComponent(`https://api.themoviedb.org/3/tv/${showId}?api_key=ad301b7cc82ffe19273e55e4d4206885`)}&simple=true`);
|
||||
const showResponseText = await soraFetch(`https://api.themoviedb.org/3/tv/${showId}?api_key=ad301b7cc82ffe19273e55e4d4206885`);
|
||||
const showData = await showResponseText.json();
|
||||
|
||||
let allEpisodes = [];
|
||||
|
|
@ -159,7 +159,7 @@ async function extractEpisodes(url) {
|
|||
|
||||
if(seasonNumber === 0) continue;
|
||||
|
||||
const seasonResponseText = await soraFetch(`https://post-eosin.vercel.app/api/proxy?url=${encodeURIComponent(`https://api.themoviedb.org/3/tv/${showId}/season/${seasonNumber}?api_key=ad301b7cc82ffe19273e55e4d4206885`)}&simple=true`);
|
||||
const seasonResponseText = await soraFetch(`https://api.themoviedb.org/3/tv/${showId}/season/${seasonNumber}?api_key=ad301b7cc82ffe19273e55e4d4206885`);
|
||||
const seasonData = await seasonResponseText.json();
|
||||
|
||||
if (seasonData.episodes && seasonData.episodes.length) {
|
||||
|
|
@ -191,7 +191,7 @@ async function extractStreamUrl(ID) {
|
|||
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3",
|
||||
"X-Api-Key": "24ef089ebcab51d107a4e4709e87861ef609bace89ac23af13235f6ea743488f"
|
||||
};
|
||||
const response = await fetchv2(`https://post-eosin.vercel.app/api/proxy?url=${encodeURIComponent(`https://themoviedb.hexa.watch/api/tmdb/movie/${ID.split('/')[2]}/images`)}&simple=true`, headersOne);
|
||||
const response = await fetchv2(`https://themoviedb.hexa.watch/api/tmdb/movie/${ID.split('/')[2]}/images`, headersOne);
|
||||
const data = await response.text();
|
||||
|
||||
const headers = {
|
||||
|
|
@ -237,7 +237,7 @@ async function extractStreamUrl(ID) {
|
|||
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3",
|
||||
"X-Api-Key": "24ef089ebcab51d107a4e4709e87861ef609bace89ac23af13235f6ea743488f"
|
||||
};
|
||||
const response = await fetchv2(`https://post-eosin.vercel.app/api/proxy?url=${encodeURIComponent(`https://themoviedb.hexa.watch/api/tmdb/tv/${tmdbID}/season/${seasonNumber}/episode/${episodeNumber}/images`)}&simple=true`, headersOne);
|
||||
const response = await fetchv2(`https://themoviedb.hexa.watch/api/tmdb/tv/${tmdbID}/season/${seasonNumber}/episode/${episodeNumber}/images`, headersOne);
|
||||
const data = await response.text();
|
||||
|
||||
const headers = {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
"name": "50/50",
|
||||
"icon": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ3122kQwublLkZ6rf1fEpUP79BxZOFmH9BSA&s"
|
||||
},
|
||||
"version": "1.0.7",
|
||||
"version": "1.0.6",
|
||||
"language": "English",
|
||||
"streamType": "HLS",
|
||||
"quality": "1080p",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue