forked from 50n50/sources
@@ -1,7 +1,7 @@
|
||||
async function searchResults(keyword) {
|
||||
try {
|
||||
const encodedKeyword = encodeURIComponent(keyword);
|
||||
const responseText = await fetchv2(`https://api.themoviedb.org/3/search/multi?api_key=9801b6b0548ad57581d111ea690c85c8&query=${encodedKeyword}`);
|
||||
const responseText = await fetchv2(`https://post-eosin.vercel.app/api/proxy?url=${encodeURIComponent(`https://api.themoviedb.org/3/search/multi?api_key=9801b6b0548ad57581d111ea690c85c8&query=${encodedKeyword}`)}&simple=true`);
|
||||
const data = await responseText.json();
|
||||
|
||||
const transformedResults = data.results.map(result => {
|
||||
@@ -41,7 +41,7 @@ async function extractDetails(url) {
|
||||
if (!match) throw new Error("Invalid URL format");
|
||||
|
||||
const movieId = match[1];
|
||||
const responseText = await fetchv2(`https://api.themoviedb.org/3/movie/${movieId}?api_key=ad301b7cc82ffe19273e55e4d4206885`);
|
||||
const responseText = await fetchv2(`https://post-eosin.vercel.app/api/proxy?url=${encodeURIComponent(`https://api.themoviedb.org/3/movie/${movieId}?api_key=ad301b7cc82ffe19273e55e4d4206885`)}&simple=true`);
|
||||
const data = await responseText.json();
|
||||
|
||||
const transformedResults = [{
|
||||
@@ -56,7 +56,7 @@ async function extractDetails(url) {
|
||||
if (!match) throw new Error("Invalid URL format");
|
||||
|
||||
const showId = match[1];
|
||||
const responseText = await fetchv2(`https://api.themoviedb.org/3/tv/${showId}?api_key=ad301b7cc82ffe19273e55e4d4206885`);
|
||||
const responseText = await fetchv2(`https://post-eosin.vercel.app/api/proxy?url=${encodeURIComponent(`https://api.themoviedb.org/3/tv/${showId}?api_key=ad301b7cc82ffe19273e55e4d4206885`)}&simple=true`);
|
||||
const data = await responseText.json();
|
||||
|
||||
const transformedResults = [{
|
||||
@@ -102,7 +102,7 @@ async function extractEpisodes(url) {
|
||||
|
||||
const showId = match[1];
|
||||
|
||||
const showResponseText = await fetchv2(`https://api.themoviedb.org/3/tv/${showId}?api_key=ad301b7cc82ffe19273e55e4d4206885`);
|
||||
const showResponseText = await fetchv2(`https://post-eosin.vercel.app/api/proxy?url=${encodeURIComponent(`https://api.themoviedb.org/3/tv/${showId}?api_key=ad301b7cc82ffe19273e55e4d4206885`)}&simple=true`);
|
||||
const showData = await showResponseText.json();
|
||||
|
||||
let allEpisodes = [];
|
||||
@@ -111,7 +111,7 @@ async function extractEpisodes(url) {
|
||||
|
||||
if(seasonNumber === 0) continue;
|
||||
|
||||
const seasonResponseText = await fetchv2(`https://api.themoviedb.org/3/tv/${showId}/season/${seasonNumber}?api_key=ad301b7cc82ffe19273e55e4d4206885`);
|
||||
const seasonResponseText = await fetchv2(`https://post-eosin.vercel.app/api/proxy?url=${encodeURIComponent(`https://api.themoviedb.org/3/tv/${showId}/season/${seasonNumber}?api_key=ad301b7cc82ffe19273e55e4d4206885`)}&simple=true`);
|
||||
const seasonData = await seasonResponseText.json();
|
||||
|
||||
if (seasonData.episodes && seasonData.episodes.length) {
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"name": "50/50",
|
||||
"icon": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ3122kQwublLkZ6rf1fEpUP79BxZOFmH9BSA&s"
|
||||
},
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"language": "English",
|
||||
"streamType": "HLS",
|
||||
"quality": "4K - 1080p - 720p",
|
||||
|
||||
Reference in New Issue
Block a user