implement preload_total_size argument

This commit is contained in:
yggverse 2025-06-16 19:15:20 +03:00
parent cb377425a7
commit c206a06c25
3 changed files with 22 additions and 10 deletions

View file

@ -63,6 +63,10 @@ pub struct Argument {
#[arg(long)]
pub preload_regex: Option<String>,
/// Stop crawler on total preload files size reached
#[arg(long)]
pub preload_total_size: Option<u64>,
/// Max size sum of preloaded files per torrent (match `preload_regex`)
#[arg(long)]
pub preload_max_filesize: Option<u64>,