Skip to content

Commit

Permalink
Throw intentional error on showbox since the video source is not working
Browse files Browse the repository at this point in the history
  • Loading branch information
BeamlakAschalew committed Mar 31, 2024
1 parent 7ff15bc commit cd1c4de
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
9 changes: 5 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src/utils/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ export async function fetchMovieData(id: string): Promise<{
} | null> {
const key = `tmdb-movie:${id}`;
const fetchData = async () => {
console.log("Fetching mov data");

const apiUrl = `${tmdbBaseUrl}/3/movie/${id}?language=en-US&api_key=${tmdbKey}`;
try {
const response = await axios.get(apiUrl);
Expand Down Expand Up @@ -348,6 +350,9 @@ export async function fetchDash(
let subSources: SubData[] = [];

try {
if (provider === "showbox" || provider === "superstream") {
throw new NotFoundError();
}
const outputEmbed = await providers(
proxied,
reply,
Expand Down

0 comments on commit cd1c4de

Please sign in to comment.