Add API command to retrieve YouTube cookie sources

This commit is contained in:
2026-05-08 02:05:57 +02:00
parent 1d2dd30308
commit a13a3c5202

View File

@@ -1710,6 +1710,11 @@ fn get_summaries(state: State<'_, AppState>) -> Result<Vec<SummaryEntry>, String
Ok(items)
}
#[tauri::command]
fn get_youtube_cookie_sources() -> Vec<YoutubeCookieBrowserOption> {
get_youtube_cookie_browser_options_inner()
}
#[tauri::command]
async fn summarize_video(
state: State<'_, AppState>,
@@ -1825,6 +1830,7 @@ fn main() {
.invoke_handler(tauri::generate_handler![
get_models,
get_summaries,
get_youtube_cookie_sources,
summarize_video,
delete_summary,
translate_summary,