feat: add video resolver, URL input, and video player
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1 +1,12 @@
|
||||
// Video resolve and download commands — implemented in Task 4/5
|
||||
use crate::models::{CookieSource, VideoMetadata};
|
||||
use crate::services::video_resolver;
|
||||
|
||||
#[tauri::command]
|
||||
pub async fn resolve_url(
|
||||
url: String,
|
||||
cookie_source: CookieSource,
|
||||
) -> Result<VideoMetadata, String> {
|
||||
tokio::task::spawn_blocking(move || video_resolver::resolve(&url, &cookie_source))
|
||||
.await
|
||||
.map_err(|e| format!("Task failed: {e}"))?
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user