From c496c50451e12358f9f7b2bfe3b696a9bc10d47e Mon Sep 17 00:00:00 2001 From: Brad Culwell Date: Sat, 26 Oct 2024 14:11:21 -0500 Subject: [PATCH] fix(rqbit): output_folder not expanding tilde --- src/client/rqbit.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/client/rqbit.rs b/src/client/rqbit.rs index 8c7fdb0..cd36b27 100644 --- a/src/client/rqbit.rs +++ b/src/client/rqbit.rs @@ -50,8 +50,11 @@ async fn add_torrent( if let Some(ow) = conf.overwrite { query.push(format!("overwrite={}", ow)); } - if let Some(out) = conf.output_folder.to_owned() { - query.push(format!("output_folder={}", encode(&out))); + if let Some(out) = conf.output_folder.as_ref() { + query.push(format!( + "output_folder={}", + encode(&shellexpand::tilde(out)) + )); } url.set_query(Some(&query.join("&")));