fix some ui and trying to fix black window

This commit is contained in:
Julian Freeman
2025-12-08 10:06:25 -04:00
parent 56aeafbf41
commit 5fa6b5b616
3 changed files with 26 additions and 13 deletions

View File

@@ -66,6 +66,8 @@ pub async fn fetch_metadata(app: &AppHandle, url: &str, parse_mix_playlist: bool
let qjs_path = binary_manager::get_qjs_path(app)?; // Get absolute path to quickjs
let mut cmd = Command::new(ytdlp_path);
#[cfg(target_os = "windows")]
cmd.creation_flags(0x08000000);
// Pass the runtime and its absolute path to --js-runtimes
cmd.arg("--js-runtimes").arg(format!("quickjs:{}", qjs_path.to_string_lossy()));
@@ -200,6 +202,8 @@ pub async fn download_video(
}).ok();
let mut cmd = Command::new(ytdlp_path);
#[cfg(target_os = "windows")]
cmd.creation_flags(0x08000000);
let mut child = cmd
.args(&args)