pstream is dead; long live pstream taciturnaxolotl.github.io/pstream-ng/
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Revert "Update traktApi.ts"

This reverts commit c907ef0c515a0f63eacc4d58df477cc82d721ec1.

Pas 8fa57d9f 796b3e85

+4 -19
+4 -19
src/backend/metadata/traktApi.ts
··· 1 1 import { SimpleCache } from "@/utils/cache"; 2 - import { getTurnstileToken } from "@/utils/turnstile"; 3 2 4 3 import { getMediaDetails } from "./tmdb"; 5 4 import { TMDBContentTypes, TMDBMovieData } from "./types/tmdb"; ··· 61 60 return cachedResult as T; 62 61 } 63 62 64 - // Get Turnstile token for verification 65 - const turnstileToken = await getTurnstileToken("0x4AAAAAAB6ocCCpurfWRZyC"); 66 - 67 - // Make the API request with Turnstile token 68 - const response = await fetch(`${TRAKT_BASE_URL}${endpoint}`, { 69 - headers: { 70 - "cf-turnstile-response": turnstileToken, 71 - }, 72 - }); 63 + // Make the API request 64 + const response = await fetch(`${TRAKT_BASE_URL}${endpoint}`); 73 65 if (!response.ok) { 74 66 throw new Error(`Failed to fetch from ${endpoint}: ${response.statusText}`); 75 67 } ··· 99 91 return cachedResult as TraktReleaseResponse; 100 92 } 101 93 102 - // Get Turnstile token for verification 103 - const turnstileToken = await getTurnstileToken("0x4AAAAAAB6ocCCpurfWRZyC"); 104 - 105 - // Make the API request with Turnstile token 106 - const response = await fetch(`${TRAKT_BASE_URL}${url}`, { 107 - headers: { 108 - "cf-turnstile-response": turnstileToken, 109 - }, 110 - }); 94 + // Make the API request 95 + const response = await fetch(`${TRAKT_BASE_URL}${url}`); 111 96 if (!response.ok) { 112 97 throw new Error(`Failed to fetch release details: ${response.statusText}`); 113 98 }