From 28f146b96541b0f18424c649c41514094cfd6a91 Mon Sep 17 00:00:00 2001 From: Paradox <66990101+Paradox-77@users.noreply.github.com> Date: Sat, 16 Mar 2024 22:34:24 +0530 Subject: [PATCH] Proxied tmdb to circumvent censorship --- src/backend/metadata/tmdb.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/metadata/tmdb.ts b/src/backend/metadata/tmdb.ts index b143b312..7f0ccfa4 100644 --- a/src/backend/metadata/tmdb.ts +++ b/src/backend/metadata/tmdb.ts @@ -17,7 +17,7 @@ import { TMDBShowData, TMDBShowSearchResult, } from "./types/tmdb"; -import { mwFetch } from "../helpers/fetch"; +import { proxiedFetch } from "../helpers/fetch"; export function mediaTypeToTMDB(type: MWMediaType): TMDBContentTypes { if (type === MWMediaType.MOVIE) return TMDBContentTypes.MOVIE; @@ -154,7 +154,7 @@ const headers = { async function get(url: string, params?: object): Promise { if (!apiKey) throw new Error("TMDB API key not set"); - const res = await mwFetch(encodeURI(url), { + const res = await proxiedFetch(encodeURI(url), { headers, baseURL, params: {