)}
diff --git a/frontend/src/store/editorStore.ts b/frontend/src/store/editorStore.ts
index ffb7bb4..3fba00c 100644
--- a/frontend/src/store/editorStore.ts
+++ b/frontend/src/store/editorStore.ts
@@ -63,7 +63,7 @@ const initialState: EditorState = {
transcriptionStatus: '',
isExporting: false,
exportProgress: 0,
- backendUrl: 'http://localhost:8642',
+ backendUrl: 'http://127.0.0.1:8000',
};
let nextRangeId = 1;
diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs
index d7a9a20..537e0e2 100644
--- a/src-tauri/src/lib.rs
+++ b/src-tauri/src/lib.rs
@@ -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
diff --git a/src-tauri/src/paths.rs b/src-tauri/src/paths.rs
index e47f73e..fc3df6d 100644
--- a/src-tauri/src/paths.rs
+++ b/src-tauri/src/paths.rs
@@ -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)
diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json
index 8059f74..a34ddd1 100644
--- a/src-tauri/tauri.conf.json
+++ b/src-tauri/tauri.conf.json
@@ -23,7 +23,7 @@
}
],
"security": {
- "csp": null
+ "csp": "default-src 'self'; connect-src 'self' http://127.0.0.1:8000; media-src 'self' http://127.0.0.1:8000; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob:"
}
},
"bundle": {
diff --git a/test_api.py b/test_api.py
index b2c0622..0553c6f 100755
--- a/test_api.py
+++ b/test_api.py
@@ -1,4 +1,4 @@
-#!/home/dillon/_code/TalkEdit/.venv/bin/python3.10
+#!/home/dillon/_code/TalkEdit/.venv312/bin/python3.12
"""
Test script for the TalkEdit API.
This script tests the new Tauri commands that expose all backend functions.