New Features

- Added user_agent configuration field to Trakt API settings.

Changes

- Renamed Trakt API configuration field from key to api_key for consistency.
- Updated README and documentation with new Trakt API configuration structure.
- Updated UI labels for API configuration fields.
This commit is contained in:
euzu
2026-01-12 09:11:16 +01:00
parent 3fade46e04
commit b42e2f71fa
5 changed files with 11 additions and 10 deletions
+2 -5
View File
@@ -4,8 +4,7 @@ use std::path::{Path, PathBuf};
use serde::{Deserialize, Serialize};
use std::time::{SystemTime, UNIX_EPOCH};
use log::{error, warn};
use shared::concat_string;
use crate::repository::storage::{get_input_storage_path, sanitize_name};
use crate::repository::storage::{build_input_storage_path, get_input_storage_path};
pub const STATUS_FILE: &str = "status.json";
@@ -30,9 +29,7 @@ pub struct InputStatus {
pub fn resolve_input_storage_path(working_dir: &str, input_name: &str) -> PathBuf {
if let Ok(path) = get_input_storage_path(input_name, working_dir) { path } else {
let sanitized_name: String = sanitize_name(input_name);
let name = concat_string!(cap = 6 + sanitized_name.len(); "input_", &sanitized_name);
Path::new(working_dir).join(name)
build_input_storage_path(input_name, working_dir)
}
}