youtube-dl-gui 0.2.1

Cross-platform GUI for youtube-dl made with Iced
1
2
3
4
5
6
/// Function for selecting download dir
pub async fn select_download_path() -> Option<String> {
    let task = rfd::AsyncFileDialog::new().pick_folder();
    let handle = task.await;
    handle.and_then(|handle| handle.path().to_str().map(String::from))
}