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: {