From 320e63a2fb9d3616f773e88d871340625f938a99 Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 18 Aug 2025 16:28:09 +0300 Subject: [PATCH] update `only_files`after torrent init to prevent librqbit `error` warning on empty list defined --- src/main.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index c76eff9..9cb108c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -110,15 +110,11 @@ async fn main() -> Result<()> { }, )), Some(AddTorrentOptions { - paused: true, // continue after `only_files` init + paused: true, // continue after `only_files` update overwrite: true, disable_trackers: config.tracker.is_empty(), initial_peers: config.initial_peer.clone(), list_only: false, - // it is important to blacklist all files preload until initiation - only_files: Some(Vec::with_capacity( - config.preload_max_filecount.unwrap_or_default(), - )), // the destination folder to preload files match `preload_regex` // * e.g. images for audio albums output_folder: preload