diff --git a/src/backend/metadata/traktApi.ts b/src/backend/metadata/traktApi.ts index c31de5e3..9c8b0142 100644 --- a/src/backend/metadata/traktApi.ts +++ b/src/backend/metadata/traktApi.ts @@ -1,5 +1,4 @@ import { SimpleCache } from "@/utils/cache"; -import { getTurnstileToken } from "@/utils/turnstile"; import { getMediaDetails } from "./tmdb"; import { TMDBContentTypes, TMDBMovieData } from "./types/tmdb"; @@ -61,15 +60,8 @@ async function fetchFromTrakt( return cachedResult as T; } - // Get Turnstile token for verification - const turnstileToken = await getTurnstileToken("0x4AAAAAAB6ocCCpurfWRZyC"); - - // Make the API request with Turnstile token - const response = await fetch(`${TRAKT_BASE_URL}${endpoint}`, { - headers: { - "cf-turnstile-response": turnstileToken, - }, - }); + // Make the API request + const response = await fetch(`${TRAKT_BASE_URL}${endpoint}`); if (!response.ok) { throw new Error(`Failed to fetch from ${endpoint}: ${response.statusText}`); } @@ -99,15 +91,8 @@ export async function getReleaseDetails( return cachedResult as TraktReleaseResponse; } - // Get Turnstile token for verification - const turnstileToken = await getTurnstileToken("0x4AAAAAAB6ocCCpurfWRZyC"); - - // Make the API request with Turnstile token - const response = await fetch(`${TRAKT_BASE_URL}${url}`, { - headers: { - "cf-turnstile-response": turnstileToken, - }, - }); + // Make the API request + const response = await fetch(`${TRAKT_BASE_URL}${url}`); if (!response.ok) { throw new Error(`Failed to fetch release details: ${response.statusText}`); }