added close; fixed some issues

This commit is contained in:
2026-03-28 15:09:56 -06:00
parent 2ffc406b10
commit 246d816f84
8 changed files with 164 additions and 69 deletions

View File

@ -9,13 +9,10 @@ mod ai_provider;
mod caption_generator;
mod background_removal;
/// Returns the backend URL. Stubbed for now; will be replaced once the
/// Python/Rust backend is fully wired up.
/// Returns the backend URL.
#[tauri::command]
fn get_backend_url() -> String {
// During development the Python backend still runs on 8642.
// In production this will be replaced with a local Rust server or IPC.
"http://localhost:8642".to_string()
"http://127.0.0.1:8000".to_string()
}
/// Minimal encrypt: base64-encodes the string as a placeholder until a proper

View File

@ -45,18 +45,6 @@ pub fn python_exe() -> PathBuf {
root.join(".venv").join("bin").join("python3")
}
/// Absolute path to the bundled ffmpeg binary.
/// Uses a sidecar in resources/bin/ when packaged, otherwise expects it on PATH.
pub fn ffmpeg_exe() -> PathBuf {
let root = project_root();
let bundled = root.join("bin").join("ffmpeg");
if bundled.exists() {
return bundled;
}
// Fallback to system ffmpeg during development
PathBuf::from("ffmpeg")
}
/// Absolute path to a script in the backend directory.
pub fn backend_script(name: &str) -> PathBuf {
project_root().join("backend").join(name)