Files
tuliprox/shared/src/defaults/trakt.rs
T
Juanjo PresaandGitHub 079c5c7a10 fix: require a user-supplied Trakt client ID (#859)
remove the bundled Trakt Client ID and every fallback to it while keeping the compatible trakt.api.api_key field
trim supplied Client IDs, reject blank/header-invalid values before request construction, and skip only optional Trakt curation with one target-scoped warning
translate Trakt 401/403/404/429 responses explicitly, distinguish list/chart 404s, and preserve partial success across configured sources
disable the checked-in Trakt example until an explicit Client ID is configured and update docs and Source Editor terminology
2026-09-05 17:59:25 +02:00

9 lines
325 B
Rust

//! Trakt defaults.
pub const TRAKT_API_VERSION: &str = "2";
pub const TRAKT_API_URL: &str = "https://api.trakt.tv";
pub fn default_trakt_api_version() -> String { String::from(TRAKT_API_VERSION) }
pub fn default_trakt_api_url() -> String { String::from(TRAKT_API_URL) }
pub fn default_trakt_fuzzy_threshold() -> u8 { 80 }