Fix a couple bugs
This commit is contained in:
parent
1bea1f9235
commit
1c53aeba2f
6 changed files with 57 additions and 30 deletions
|
|
@ -36,12 +36,8 @@ async fn main() -> Result<(), anyhow::Error> {
|
|||
.add_torrent(
|
||||
AddTorrent::from_url(MAGNET_LINK),
|
||||
Some(AddTorrentOptions {
|
||||
// Set this to true to allow writing on top of existing files.
|
||||
// If the file is partially downloaded, librqbit will only download the
|
||||
// missing pieces.
|
||||
//
|
||||
// Otherwise it will throw an error that the file exists.
|
||||
overwrite: false,
|
||||
// Allow writing on top of existing files.
|
||||
overwrite: true,
|
||||
..Default::default()
|
||||
}),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue