diff --git a/broken/videasy/videasy.js b/broken/videasy/videasy.js index 409607a..955a233 100644 --- a/broken/videasy/videasy.js +++ b/broken/videasy/videasy.js @@ -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) { diff --git a/broken/videasy/videasy.json b/broken/videasy/videasy.json index ff0dbbb..593b9e4 100644 --- a/broken/videasy/videasy.json +++ b/broken/videasy/videasy.json @@ -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", diff --git a/checkmate/checkmate.js b/checkmate/checkmate.js index f6feea3..24984b8 100644 --- a/checkmate/checkmate.js +++ b/checkmate/checkmate.js @@ -20,17 +20,17 @@ async function searchResults(query) { let baseUrl = null; if (matchesKeyword(query, keywordGroups.trending)) { - baseUrl = `https://api.themoviedb.org/3/trending/all/week?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`; + 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=')}`; } else if (matchesKeyword(query, keywordGroups.topRatedMovie)) { - baseUrl = `https://api.themoviedb.org/3/movie/top_rated?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`; + 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=')}`; } else if (matchesKeyword(query, keywordGroups.topRatedTV)) { - baseUrl = `https://api.themoviedb.org/3/tv/top_rated?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`; + 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=')}`; } else if (matchesKeyword(query, keywordGroups.popularMovie)) { - baseUrl = `https://api.themoviedb.org/3/movie/popular?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`; + baseUrl = `https://post-eosin.vercel.app/api/proxy?url=${encodeURIComponent('https://api.themoviedb.org/3/movie/popular?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=')}`; } else if (matchesKeyword(query, keywordGroups.popularTV)) { - baseUrl = `https://api.themoviedb.org/3/tv/popular?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`; + baseUrl = `https://post-eosin.vercel.app/api/proxy?url=${encodeURIComponent('https://api.themoviedb.org/3/tv/popular?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=')}`; } else { - baseUrl = `https://api.themoviedb.org/3/search/multi?api_key=9801b6b0548ad57581d111ea690c85c8&query=${encodedQuery}&include_adult=false&page=`; + baseUrl = `https://post-eosin.vercel.app/api/proxy?url=${encodeURIComponent(`https://api.themoviedb.org/3/search/multi?api_key=9801b6b0548ad57581d111ea690c85c8&query=${encodedQuery}&include_adult=false&page=`)}&simple=true`; } const fuzzyMatch = (query, title) => { @@ -221,7 +221,7 @@ async function extractDetails(url) { if (!match) throw new Error("Invalid URL format"); const movieId = match[1]; - const responseText = await soraFetch(`https://api.themoviedb.org/3/movie/${movieId}?api_key=ad301b7cc82ffe19273e55e4d4206885`); + 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 data = await responseText.json(); const transformedResults = [{ @@ -236,7 +236,7 @@ async function extractDetails(url) { if (!match) throw new Error("Invalid URL format"); const showId = match[1]; - const responseText = await soraFetch(`https://api.themoviedb.org/3/tv/${showId}?api_key=ad301b7cc82ffe19273e55e4d4206885`); + 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 data = await responseText.json(); const transformedResults = [{ @@ -282,7 +282,7 @@ async function extractEpisodes(url) { const showId = match[1]; - const showResponseText = await soraFetch(`https://api.themoviedb.org/3/tv/${showId}?api_key=ad301b7cc82ffe19273e55e4d4206885`); + 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 showData = await showResponseText.json(); let allEpisodes = []; @@ -291,7 +291,7 @@ async function extractEpisodes(url) { if(seasonNumber === 0) continue; - const seasonResponseText = await soraFetch(`https://api.themoviedb.org/3/tv/${showId}/season/${seasonNumber}?api_key=ad301b7cc82ffe19273e55e4d4206885`); + 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 seasonData = await seasonResponseText.json(); if (seasonData.episodes && seasonData.episodes.length) { @@ -561,7 +561,7 @@ async function beta(ID) { "X-Requested-With": "XMLHttpRequest", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/" }; - const tmdbResponse = await fetchv2(`https://api.themoviedb.org/3/movie/${tmdbID}?append_to_response=external_ids`, headersOne); + const tmdbResponse = await fetchv2(`https://post-eosin.vercel.app/api/proxy?url=${encodeURIComponent(`https://api.themoviedb.org/3/movie/${tmdbID}?append_to_response=external_ids`)}&simple=true`, headersOne); const tmdbData = await tmdbResponse.json(); const imdbID = tmdbData.imdb_id; @@ -602,7 +602,7 @@ async function beta(ID) { "X-Requested-With": "XMLHttpRequest", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/" }; - const tmdbResponse = await fetchv2(`https://api.themoviedb.org/3/tv/${tmdbID}?append_to_response=external_ids`, headersOne); + const tmdbResponse = await fetchv2(`https://post-eosin.vercel.app/api/proxy?url=${encodeURIComponent(`https://api.themoviedb.org/3/tv/${tmdbID}?append_to_response=external_ids`)}&simple=true`, headersOne); const tmdbData = await tmdbResponse.json(); const imdbID = tmdbData.external_ids.imdb_id; @@ -690,7 +690,7 @@ async function delta(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://themoviedb.hexa.watch/api/tmdb/movie/${ID.split('/')[2]}/images`, headersOne); + 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 data = await response.text(); const headers = { @@ -737,7 +737,7 @@ async function delta(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://themoviedb.hexa.watch/api/tmdb/tv/${tmdbID}/season/${seasonNumber}/episode/${episodeNumber}/images`, headersOne); + 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 data = await response.text(); const headers = { diff --git a/checkmate/checkmate.json b/checkmate/checkmate.json index 8b7ff78..385610c 100644 --- a/checkmate/checkmate.json +++ b/checkmate/checkmate.json @@ -5,7 +5,7 @@ "name": "50/50", "icon": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ3122kQwublLkZ6rf1fEpUP79BxZOFmH9BSA&s" }, - "version": "1.0.4", + "version": "1.0.5", "language": "English", "streamType": "HLS", "quality": "4K", diff --git a/hexa/hexa.js b/hexa/hexa.js index 0c18bd7..1c30804 100644 --- a/hexa/hexa.js +++ b/hexa/hexa.js @@ -21,17 +21,17 @@ async function searchResults(keyword) { let baseUrl = null; if (matchesKeyword(keyword, keywordGroups.trending)) { - baseUrl = `https://api.themoviedb.org/3/trending/all/week?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`; + 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=')}`; } else if (matchesKeyword(keyword, keywordGroups.topRatedMovie)) { - baseUrl = `https://api.themoviedb.org/3/movie/top_rated?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`; + 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=')}`; } else if (matchesKeyword(keyword, keywordGroups.topRatedTV)) { - baseUrl = `https://api.themoviedb.org/3/tv/top_rated?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`; + 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=')}`; } else if (matchesKeyword(keyword, keywordGroups.popularMovie)) { - baseUrl = `https://api.themoviedb.org/3/movie/popular?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`; + baseUrl = `https://post-eosin.vercel.app/api/proxy?url=${encodeURIComponent('https://api.themoviedb.org/3/movie/popular?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=')}`; } else if (matchesKeyword(keyword, keywordGroups.popularTV)) { - baseUrl = `https://api.themoviedb.org/3/tv/popular?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`; + baseUrl = `https://post-eosin.vercel.app/api/proxy?url=${encodeURIComponent('https://api.themoviedb.org/3/tv/popular?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=')}`; } else { - baseUrl = `https://api.themoviedb.org/3/search/multi?api_key=9801b6b0548ad57581d111ea690c85c8&query=${encodedKeyword}&include_adult=false&page=`; + 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`; } 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://api.themoviedb.org/3/movie/${movieId}?api_key=ad301b7cc82ffe19273e55e4d4206885`); + 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 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://api.themoviedb.org/3/tv/${showId}?api_key=ad301b7cc82ffe19273e55e4d4206885`); + 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 data = await responseText.json(); const transformedResults = [{ @@ -150,7 +150,7 @@ async function extractEpisodes(url) { const showId = match[1]; - const showResponseText = await soraFetch(`https://api.themoviedb.org/3/tv/${showId}?api_key=ad301b7cc82ffe19273e55e4d4206885`); + 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 showData = await showResponseText.json(); let allEpisodes = []; @@ -159,7 +159,7 @@ async function extractEpisodes(url) { if(seasonNumber === 0) continue; - const seasonResponseText = await soraFetch(`https://api.themoviedb.org/3/tv/${showId}/season/${seasonNumber}?api_key=ad301b7cc82ffe19273e55e4d4206885`); + 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 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://themoviedb.hexa.watch/api/tmdb/movie/${ID.split('/')[2]}/images`, headersOne); + 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 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://themoviedb.hexa.watch/api/tmdb/tv/${tmdbID}/season/${seasonNumber}/episode/${episodeNumber}/images`, headersOne); + 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 data = await response.text(); const headers = { diff --git a/hexa/hexa.json b/hexa/hexa.json index 3b2757a..0e2336d 100644 --- a/hexa/hexa.json +++ b/hexa/hexa.json @@ -5,7 +5,7 @@ "name": "50/50", "icon": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ3122kQwublLkZ6rf1fEpUP79BxZOFmH9BSA&s" }, - "version": "1.0.6", + "version": "1.0.7", "language": "English", "streamType": "HLS", "quality": "1080p", diff --git a/mapple/mapple.js b/mapple/mapple.js index c5e0ecf..f103a1d 100644 --- a/mapple/mapple.js +++ b/mapple/mapple.js @@ -21,17 +21,17 @@ async function searchResults(keyword) { let baseUrl = null; if (matchesKeyword(keyword, keywordGroups.trending)) { - baseUrl = `https://api.themoviedb.org/3/trending/all/week?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`; + 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=')}`; } else if (matchesKeyword(keyword, keywordGroups.topRatedMovie)) { - baseUrl = `https://api.themoviedb.org/3/movie/top_rated?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`; + 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=')}`; } else if (matchesKeyword(keyword, keywordGroups.topRatedTV)) { - baseUrl = `https://api.themoviedb.org/3/tv/top_rated?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`; + 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=')}`; } else if (matchesKeyword(keyword, keywordGroups.popularMovie)) { - baseUrl = `https://api.themoviedb.org/3/movie/popular?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`; + baseUrl = `https://post-eosin.vercel.app/api/proxy?url=${encodeURIComponent('https://api.themoviedb.org/3/movie/popular?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=')}`; } else if (matchesKeyword(keyword, keywordGroups.popularTV)) { - baseUrl = `https://api.themoviedb.org/3/tv/popular?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`; + baseUrl = `https://post-eosin.vercel.app/api/proxy?url=${encodeURIComponent('https://api.themoviedb.org/3/tv/popular?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=')}`; } else { - baseUrl = `https://api.themoviedb.org/3/search/multi?api_key=9801b6b0548ad57581d111ea690c85c8&query=${encodedKeyword}&include_adult=false&page=`; + 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`; } let dataResults = []; @@ -100,7 +100,7 @@ async function extractDetails(url) { if (!match) throw new Error("Invalid URL format"); const movieId = match[1]; - const responseText = await soraFetch(`https://api.themoviedb.org/3/movie/${movieId}?api_key=ad301b7cc82ffe19273e55e4d4206885`); + 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 data = await responseText.json(); const transformedResults = [{ @@ -115,7 +115,7 @@ async function extractDetails(url) { if (!match) throw new Error("Invalid URL format"); const showId = match[1]; - const responseText = await soraFetch(`https://api.themoviedb.org/3/tv/${showId}?api_key=ad301b7cc82ffe19273e55e4d4206885`); + 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 data = await responseText.json(); const transformedResults = [{ @@ -162,13 +162,13 @@ async function extractEpisodes(url) { if (!match) throw new Error("Invalid TV URL format"); const showId = match[1]; const titleSlug = match[2]; - const showResponseText = await soraFetch(`https://api.themoviedb.org/3/tv/${showId}?api_key=ad301b7cc82ffe19273e55e4d4206885`); + 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 showData = await showResponseText.json(); let allEpisodes = []; for (const season of showData.seasons) { const seasonNumber = season.season_number; if(seasonNumber === 0) continue; - const seasonResponseText = await soraFetch(`https://api.themoviedb.org/3/tv/${showId}/season/${seasonNumber}?api_key=ad301b7cc82ffe19273e55e4d4206885`); + 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 seasonData = await seasonResponseText.json(); if (seasonData.episodes && seasonData.episodes.length) { const episodes = seasonData.episodes.map(episode => ({ diff --git a/smashystream/smashystream.js b/smashystream/smashystream.js index 17a59fb..4b188cc 100644 --- a/smashystream/smashystream.js +++ b/smashystream/smashystream.js @@ -21,17 +21,17 @@ async function searchResults(keyword) { let baseUrl = null; if (matchesKeyword(keyword, keywordGroups.trending)) { - baseUrl = `https://api.themoviedb.org/3/trending/all/week?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`; + 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=')}`; } else if (matchesKeyword(keyword, keywordGroups.topRatedMovie)) { - baseUrl = `https://api.themoviedb.org/3/movie/top_rated?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`; + 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=')}`; } else if (matchesKeyword(keyword, keywordGroups.topRatedTV)) { - baseUrl = `https://api.themoviedb.org/3/tv/top_rated?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`; + 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=')}`; } else if (matchesKeyword(keyword, keywordGroups.popularMovie)) { - baseUrl = `https://api.themoviedb.org/3/movie/popular?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`; + baseUrl = `https://post-eosin.vercel.app/api/proxy?url=${encodeURIComponent('https://api.themoviedb.org/3/movie/popular?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=')}`; } else if (matchesKeyword(keyword, keywordGroups.popularTV)) { - baseUrl = `https://api.themoviedb.org/3/tv/popular?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`; + baseUrl = `https://post-eosin.vercel.app/api/proxy?url=${encodeURIComponent('https://api.themoviedb.org/3/tv/popular?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=')}`; } else { - baseUrl = `https://api.themoviedb.org/3/search/multi?api_key=9801b6b0548ad57581d111ea690c85c8&query=${encodedKeyword}&include_adult=false&page=`; + 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`; } 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://api.themoviedb.org/3/movie/${movieId}?api_key=ad301b7cc82ffe19273e55e4d4206885`); + 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 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://api.themoviedb.org/3/tv/${showId}?api_key=ad301b7cc82ffe19273e55e4d4206885`); + 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 data = await responseText.json(); const transformedResults = [{ @@ -150,7 +150,7 @@ async function extractEpisodes(url) { const showId = match[1]; - const showResponseText = await soraFetch(`https://api.themoviedb.org/3/tv/${showId}?api_key=ad301b7cc82ffe19273e55e4d4206885`); + 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 showData = await showResponseText.json(); let allEpisodes = []; @@ -159,7 +159,7 @@ async function extractEpisodes(url) { if(seasonNumber === 0) continue; - const seasonResponseText = await soraFetch(`https://api.themoviedb.org/3/tv/${showId}/season/${seasonNumber}?api_key=ad301b7cc82ffe19273e55e4d4206885`); + 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 seasonData = await seasonResponseText.json(); if (seasonData.episodes && seasonData.episodes.length) { @@ -194,7 +194,7 @@ async function extractStreamUrl(ID) { "X-Requested-With": "XMLHttpRequest", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/" }; - const tmdbResponse = await fetchv2(`https://api.themoviedb.org/3/movie/${tmdbID}?append_to_response=external_ids`, headersOne); + const tmdbResponse = await fetchv2(`https://post-eosin.vercel.app/api/proxy?url=${encodeURIComponent(`https://api.themoviedb.org/3/movie/${tmdbID}?append_to_response=external_ids`)}&simple=true`, headersOne); const tmdbData = await tmdbResponse.json(); console.log(JSON.stringify(tmdbData)); const imdbID = tmdbData.imdb_id; @@ -251,7 +251,7 @@ async function extractStreamUrl(ID) { "X-Requested-With": "XMLHttpRequest", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/" }; - const tmdbResponse = await fetchv2(`https://api.themoviedb.org/3/tv/${tmdbID}?append_to_response=external_ids`, headersOne); + const tmdbResponse = await fetchv2(`https://post-eosin.vercel.app/api/proxy?url=${encodeURIComponent(`https://api.themoviedb.org/3/tv/${tmdbID}?append_to_response=external_ids`)}&simple=true`, headersOne); const tmdbData = await tmdbResponse.json(); console.log(JSON.stringify(tmdbData)); const imdbID = tmdbData.external_ids.imdb_id; diff --git a/smashystream/smashystream.json b/smashystream/smashystream.json index 735f00e..8e76376 100644 --- a/smashystream/smashystream.json +++ b/smashystream/smashystream.json @@ -5,7 +5,7 @@ "name": "50/50", "icon": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ3122kQwublLkZ6rf1fEpUP79BxZOFmH9BSA&s" }, - "version": "1.0.2", + "version": "1.0.3", "language": "English", "streamType": "HLS", "quality": "1080p", diff --git a/videasy/videasy.js b/videasy/videasy.js index 38fe585..886ed0a 100644 --- a/videasy/videasy.js +++ b/videasy/videasy.js @@ -21,17 +21,17 @@ async function searchResults(keyword) { let baseUrl = null; if (matchesKeyword(keyword, keywordGroups.trending)) { - baseUrl = `https://api.themoviedb.org/3/trending/all/week?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`; + 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=')}`; } else if (matchesKeyword(keyword, keywordGroups.topRatedMovie)) { - baseUrl = `https://api.themoviedb.org/3/movie/top_rated?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`; + 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=')}`; } else if (matchesKeyword(keyword, keywordGroups.topRatedTV)) { - baseUrl = `https://api.themoviedb.org/3/tv/top_rated?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`; + 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=')}`; } else if (matchesKeyword(keyword, keywordGroups.popularMovie)) { - baseUrl = `https://api.themoviedb.org/3/movie/popular?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`; + baseUrl = `https://post-eosin.vercel.app/api/proxy?url=${encodeURIComponent('https://api.themoviedb.org/3/movie/popular?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=')}`; } else if (matchesKeyword(keyword, keywordGroups.popularTV)) { - baseUrl = `https://api.themoviedb.org/3/tv/popular?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`; + baseUrl = `https://post-eosin.vercel.app/api/proxy?url=${encodeURIComponent('https://api.themoviedb.org/3/tv/popular?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=')}`; } else { - baseUrl = `https://api.themoviedb.org/3/search/multi?api_key=9801b6b0548ad57581d111ea690c85c8&query=${encodedKeyword}&include_adult=false&page=`; + 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`; } 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://api.themoviedb.org/3/movie/${movieId}?api_key=ad301b7cc82ffe19273e55e4d4206885`); + 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 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://api.themoviedb.org/3/tv/${showId}?api_key=ad301b7cc82ffe19273e55e4d4206885`); + 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 data = await responseText.json(); const transformedResults = [{ @@ -150,7 +150,7 @@ async function extractEpisodes(url) { const showId = match[1]; - const showResponseText = await soraFetch(`https://api.themoviedb.org/3/tv/${showId}?api_key=ad301b7cc82ffe19273e55e4d4206885`); + 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 showData = await showResponseText.json(); let allEpisodes = []; @@ -159,7 +159,7 @@ async function extractEpisodes(url) { if(seasonNumber === 0) continue; - const seasonResponseText = await soraFetch(`https://api.themoviedb.org/3/tv/${showId}/season/${seasonNumber}?api_key=ad301b7cc82ffe19273e55e4d4206885`); + 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 seasonData = await seasonResponseText.json(); if (seasonData.episodes && seasonData.episodes.length) { diff --git a/vidfast/vidfast.js b/vidfast/vidfast.js index 7690697..5bef3a1 100644 --- a/vidfast/vidfast.js +++ b/vidfast/vidfast.js @@ -20,17 +20,17 @@ async function searchResults(keyword) { let baseUrl = null; if (matchesKeyword(keyword, keywordGroups.trending)) { - baseUrl = `https://api.themoviedb.org/3/trending/all/week?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`; + 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=')}&simple=true`; } else if (matchesKeyword(keyword, keywordGroups.topRatedMovie)) { - baseUrl = `https://api.themoviedb.org/3/movie/top_rated?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`; + 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=')}&simple=true`; } else if (matchesKeyword(keyword, keywordGroups.topRatedTV)) { - baseUrl = `https://api.themoviedb.org/3/tv/top_rated?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`; + 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=')}&simple=true`; } else if (matchesKeyword(keyword, keywordGroups.popularMovie)) { - baseUrl = `https://api.themoviedb.org/3/movie/popular?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`; + baseUrl = `https://post-eosin.vercel.app/api/proxy?url=${encodeURIComponent('https://api.themoviedb.org/3/movie/popular?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=')}&simple=true`; } else if (matchesKeyword(keyword, keywordGroups.popularTV)) { - baseUrl = `https://api.themoviedb.org/3/tv/popular?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`; + baseUrl = `https://post-eosin.vercel.app/api/proxy?url=${encodeURIComponent('https://api.themoviedb.org/3/tv/popular?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=')}&simple=true`; } else { - baseUrl = `https://api.themoviedb.org/3/search/multi?api_key=9801b6b0548ad57581d111ea690c85c8&query=${encodedKeyword}&include_adult=false&page=`; + 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`; } let dataResults = []; @@ -88,7 +88,7 @@ async function extractDetails(url) { if (!match) throw new Error("Invalid URL format"); const movieId = match[1]; - const responseText = await soraFetch(`https://api.themoviedb.org/3/movie/${movieId}?api_key=ad301b7cc82ffe19273e55e4d4206885`); + 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 data = await responseText.json(); const transformedResults = [{ @@ -103,7 +103,7 @@ async function extractDetails(url) { if (!match) throw new Error("Invalid URL format"); const showId = match[1]; - const responseText = await soraFetch(`https://api.themoviedb.org/3/tv/${showId}?api_key=ad301b7cc82ffe19273e55e4d4206885`); + 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 data = await responseText.json(); const transformedResults = [{ @@ -149,7 +149,7 @@ async function extractEpisodes(url) { const showId = match[1]; - const showResponseText = await soraFetch(`https://api.themoviedb.org/3/tv/${showId}?api_key=ad301b7cc82ffe19273e55e4d4206885`); + 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 showData = await showResponseText.json(); let allEpisodes = []; @@ -158,7 +158,7 @@ async function extractEpisodes(url) { if(seasonNumber === 0) continue; - const seasonResponseText = await soraFetch(`https://api.themoviedb.org/3/tv/${showId}/season/${seasonNumber}?api_key=ad301b7cc82ffe19273e55e4d4206885`); + 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 seasonData = await seasonResponseText.json(); if (seasonData.episodes && seasonData.episodes.length) { diff --git a/vidfast/vidfast.json b/vidfast/vidfast.json index 2261627..afdb575 100644 --- a/vidfast/vidfast.json +++ b/vidfast/vidfast.json @@ -5,7 +5,7 @@ "name": "50/50", "icon": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ3122kQwublLkZ6rf1fEpUP79BxZOFmH9BSA&s" }, - "version": "1.1.0", + "version": "1.1.1", "language": "English", "streamType": "HLS", "quality": "1080p", diff --git a/vidlink/vidlink.js b/vidlink/vidlink.js index a86fe4c..cb38007 100644 --- a/vidlink/vidlink.js +++ b/vidlink/vidlink.js @@ -21,17 +21,17 @@ async function searchResults(keyword) { let baseUrl = null; if (matchesKeyword(keyword, keywordGroups.trending)) { - baseUrl = `https://api.themoviedb.org/3/trending/all/week?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`; + 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=')}`; } else if (matchesKeyword(keyword, keywordGroups.topRatedMovie)) { - baseUrl = `https://api.themoviedb.org/3/movie/top_rated?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`; + 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=')}`; } else if (matchesKeyword(keyword, keywordGroups.topRatedTV)) { - baseUrl = `https://api.themoviedb.org/3/tv/top_rated?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`; + 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=')}`; } else if (matchesKeyword(keyword, keywordGroups.popularMovie)) { - baseUrl = `https://api.themoviedb.org/3/movie/popular?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`; + baseUrl = `https://post-eosin.vercel.app/api/proxy?url=${encodeURIComponent('https://api.themoviedb.org/3/movie/popular?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=')}`; } else if (matchesKeyword(keyword, keywordGroups.popularTV)) { - baseUrl = `https://api.themoviedb.org/3/tv/popular?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`; + baseUrl = `https://post-eosin.vercel.app/api/proxy?url=${encodeURIComponent('https://api.themoviedb.org/3/tv/popular?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=')}`; } else { - baseUrl = `https://api.themoviedb.org/3/search/multi?api_key=9801b6b0548ad57581d111ea690c85c8&query=${encodedKeyword}&include_adult=false&page=`; + 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`; } 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://api.themoviedb.org/3/movie/${movieId}?api_key=ad301b7cc82ffe19273e55e4d4206885`); + 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 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://api.themoviedb.org/3/tv/${showId}?api_key=ad301b7cc82ffe19273e55e4d4206885`); + 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 data = await responseText.json(); const transformedResults = [{ @@ -150,7 +150,7 @@ async function extractEpisodes(url) { const showId = match[1]; - const showResponseText = await soraFetch(`https://api.themoviedb.org/3/tv/${showId}?api_key=ad301b7cc82ffe19273e55e4d4206885`); + 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 showData = await showResponseText.json(); let allEpisodes = []; @@ -159,7 +159,7 @@ async function extractEpisodes(url) { if(seasonNumber === 0) continue; - const seasonResponseText = await soraFetch(`https://api.themoviedb.org/3/tv/${showId}/season/${seasonNumber}?api_key=ad301b7cc82ffe19273e55e4d4206885`); + 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 seasonData = await seasonResponseText.json(); if (seasonData.episodes && seasonData.episodes.length) { diff --git a/vidsrc/vidsrc.js b/vidsrc/vidsrc.js index a84464a..f64b259 100644 --- a/vidsrc/vidsrc.js +++ b/vidsrc/vidsrc.js @@ -21,17 +21,17 @@ async function searchResults(keyword) { let baseUrl = null; if (matchesKeyword(keyword, keywordGroups.trending)) { - baseUrl = `https://api.themoviedb.org/3/trending/all/week?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`; + 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=')}`; } else if (matchesKeyword(keyword, keywordGroups.topRatedMovie)) { - baseUrl = `https://api.themoviedb.org/3/movie/top_rated?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`; + 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=')}`; } else if (matchesKeyword(keyword, keywordGroups.topRatedTV)) { - baseUrl = `https://api.themoviedb.org/3/tv/top_rated?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`; + 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=')}`; } else if (matchesKeyword(keyword, keywordGroups.popularMovie)) { - baseUrl = `https://api.themoviedb.org/3/movie/popular?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`; + baseUrl = `https://post-eosin.vercel.app/api/proxy?url=${encodeURIComponent('https://api.themoviedb.org/3/movie/popular?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=')}`; } else if (matchesKeyword(keyword, keywordGroups.popularTV)) { - baseUrl = `https://api.themoviedb.org/3/tv/popular?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`; + baseUrl = `https://post-eosin.vercel.app/api/proxy?url=${encodeURIComponent('https://api.themoviedb.org/3/tv/popular?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=')}`; } else { - baseUrl = `https://api.themoviedb.org/3/search/multi?api_key=9801b6b0548ad57581d111ea690c85c8&query=${encodedKeyword}&include_adult=false&page=`; + 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`; } 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://api.themoviedb.org/3/movie/${movieId}?api_key=ad301b7cc82ffe19273e55e4d4206885`); + 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 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://api.themoviedb.org/3/tv/${showId}?api_key=ad301b7cc82ffe19273e55e4d4206885`); + 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 data = await responseText.json(); const transformedResults = [{ @@ -150,7 +150,7 @@ async function extractEpisodes(url) { const showId = match[1]; - const showResponseText = await soraFetch(`https://api.themoviedb.org/3/tv/${showId}?api_key=ad301b7cc82ffe19273e55e4d4206885`); + 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 showData = await showResponseText.json(); let allEpisodes = []; @@ -159,7 +159,7 @@ async function extractEpisodes(url) { if(seasonNumber === 0) continue; - const seasonResponseText = await soraFetch(`https://api.themoviedb.org/3/tv/${showId}/season/${seasonNumber}?api_key=ad301b7cc82ffe19273e55e4d4206885`); + 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 seasonData = await seasonResponseText.json(); if (seasonData.episodes && seasonData.episodes.length) { @@ -194,7 +194,7 @@ async function extractStreamUrl(ID) { "X-Requested-With": "XMLHttpRequest", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/" }; - const tmdbResponse = await fetchv2(`https://api.themoviedb.org/3/movie/${tmdbID}?append_to_response=external_ids`, headersOne); + const tmdbResponse = await fetchv2(`https://post-eosin.vercel.app/api/proxy?url=${encodeURIComponent(`https://api.themoviedb.org/3/movie/${tmdbID}?append_to_response=external_ids`)}&simple=true`, headersOne); const tmdbData = await tmdbResponse.json(); const imdbID = tmdbData.imdb_id; @@ -280,7 +280,7 @@ async function extractStreamUrl(ID) { "X-Requested-With": "XMLHttpRequest", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/" }; - const tmdbResponse = await fetchv2(`https://api.themoviedb.org/3/tv/${tmdbID}?append_to_response=external_ids`, headersOne); + const tmdbResponse = await fetchv2(`https://post-eosin.vercel.app/api/proxy?url=${encodeURIComponent(`https://api.themoviedb.org/3/tv/${tmdbID}?append_to_response=external_ids`)}&simple=true`, headersOne); const tmdbData = await tmdbResponse.json(); console.log(JSON.stringify(tmdbData)); const imdbID = tmdbData.external_ids.imdb_id; diff --git a/vidsrc/vidsrc.json b/vidsrc/vidsrc.json index 2fd8685..a021420 100644 --- a/vidsrc/vidsrc.json +++ b/vidsrc/vidsrc.json @@ -5,7 +5,7 @@ "name": "50/50", "icon": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ3122kQwublLkZ6rf1fEpUP79BxZOFmH9BSA&s" }, - "version": "1.0.1", + "version": "1.0.2", "language": "English", "streamType": "HLS", "quality": "1080p", diff --git a/xprime/xprime.js b/xprime/xprime.js index e8d0538..1262195 100644 --- a/xprime/xprime.js +++ b/xprime/xprime.js @@ -21,17 +21,17 @@ async function searchResults(keyword) { let baseUrl = null; if (matchesKeyword(keyword, keywordGroups.trending)) { - baseUrl = `https://api.themoviedb.org/3/trending/all/week?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`; + 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=')}`; } else if (matchesKeyword(keyword, keywordGroups.topRatedMovie)) { - baseUrl = `https://api.themoviedb.org/3/movie/top_rated?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`; + 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=')}`; } else if (matchesKeyword(keyword, keywordGroups.topRatedTV)) { - baseUrl = `https://api.themoviedb.org/3/tv/top_rated?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`; + 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=')}`; } else if (matchesKeyword(keyword, keywordGroups.popularMovie)) { - baseUrl = `https://api.themoviedb.org/3/movie/popular?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`; + baseUrl = `https://post-eosin.vercel.app/api/proxy?url=${encodeURIComponent('https://api.themoviedb.org/3/movie/popular?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=')}`; } else if (matchesKeyword(keyword, keywordGroups.popularTV)) { - baseUrl = `https://api.themoviedb.org/3/tv/popular?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=`; + baseUrl = `https://post-eosin.vercel.app/api/proxy?url=${encodeURIComponent('https://api.themoviedb.org/3/tv/popular?api_key=9801b6b0548ad57581d111ea690c85c8&include_adult=false&page=')}`; } else { - baseUrl = `https://api.themoviedb.org/3/search/multi?api_key=9801b6b0548ad57581d111ea690c85c8&query=${encodedKeyword}&include_adult=false&page=`; + 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`; } 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://api.themoviedb.org/3/movie/${movieId}?api_key=ad301b7cc82ffe19273e55e4d4206885`); + 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 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://api.themoviedb.org/3/tv/${showId}?api_key=ad301b7cc82ffe19273e55e4d4206885`); + 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 data = await responseText.json(); const transformedResults = [{ @@ -150,7 +150,7 @@ async function extractEpisodes(url) { const showId = match[1]; - const showResponseText = await soraFetch(`https://api.themoviedb.org/3/tv/${showId}?api_key=ad301b7cc82ffe19273e55e4d4206885`); + 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 showData = await showResponseText.json(); let allEpisodes = []; @@ -159,7 +159,7 @@ async function extractEpisodes(url) { if(seasonNumber === 0) continue; - const seasonResponseText = await soraFetch(`https://api.themoviedb.org/3/tv/${showId}/season/${seasonNumber}?api_key=ad301b7cc82ffe19273e55e4d4206885`); + 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 seasonData = await seasonResponseText.json(); if (seasonData.episodes && seasonData.episodes.length) { @@ -186,7 +186,7 @@ async function extractEpisodes(url) { async function extractStreamUrl(ID) { if (ID.includes('movie')) { const tmdbID = ID.replace('/movie/', ''); - const tmdbResponse = await soraFetch(`https://api.themoviedb.org/3/movie/${tmdbID}?api_key=84259f99204eeb7d45c7e3d8e36c6123&append_to_response=external_ids`); + const tmdbResponse = await soraFetch(`https://post-eosin.vercel.app/api/proxy?url=${encodeURIComponent(`https://api.themoviedb.org/3/movie/${tmdbID}?api_key=84259f99204eeb7d45c7e3d8e36c6123&append_to_response=external_ids`)}&simple=true`); const tmdbData = await tmdbResponse.json(); const name = encodeURIComponent(tmdbData.title); @@ -243,7 +243,7 @@ async function extractStreamUrl(ID) { const seasonNumber = parts[3]; const episodeNumber = parts[4]; - const tmdbResponse = await soraFetch(`https://api.themoviedb.org/3/tv/${tmdbID}?api_key=84259f99204eeb7d45c7e3d8e36c6123&append_to_response=external_ids`); + const tmdbResponse = await soraFetch(`https://post-eosin.vercel.app/api/proxy?url=${encodeURIComponent(`https://api.themoviedb.org/3/tv/${tmdbID}?api_key=84259f99204eeb7d45c7e3d8e36c6123&append_to_response=external_ids`)}&simple=true`); const tmdbData = await tmdbResponse.json(); const name = encodeURIComponent(tmdbData.name);