This commit is contained in:
Chris Cochrun 2023-11-02 06:30:31 -05:00
parent de0c26271f
commit 07b6663a35

View file

@ -46,7 +46,8 @@ mod ytdl {
println!("{:?}", data_dir); println!("{:?}", data_dir);
self.as_mut().set_loading(true); self.as_mut().set_loading(true);
let thread = self.qt_thread(); let thread = self.qt_thread();
let runtime = tokio::runtime::Runtime::new().unwrap(); let runtime =
tokio::runtime::Runtime::new().unwrap();
runtime.spawn(async move { runtime.spawn(async move {
let url = url.to_string(); let url = url.to_string();
let output_dirs = data_dir.to_str().unwrap(); let output_dirs = data_dir.to_str().unwrap();