Skip to content

Commit

Permalink
fix(rqbit): output_folder not expanding tilde
Browse files Browse the repository at this point in the history
  • Loading branch information
Beastwick18 committed Oct 26, 2024
1 parent 2ce5820 commit c496c50
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/client/rqbit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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("&")));

Expand Down

0 comments on commit c496c50

Please sign in to comment.