mirror of
https://github.com/euzu/tuliprox.git
synced 2026-10-13 19:32:36 +02:00
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
9 lines
325 B
Rust
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 }
|