mirror of
https://github.com/YGGverse/aquatic-crawler.git
synced 2026-04-01 01:25:36 +00:00
implement clear, torrent_tracker, disable_dht arguments
This commit is contained in:
parent
bd6cc95bf3
commit
1da27bfffe
5 changed files with 62 additions and 15 deletions
|
|
@ -10,16 +10,28 @@ pub struct Argument {
|
|||
#[arg(short, long, default_value_t = String::from("ei"))]
|
||||
pub debug: String,
|
||||
|
||||
/// Clear previous index collected on crawl session start
|
||||
#[arg(short, long, default_value_t = false)]
|
||||
pub clear: bool,
|
||||
|
||||
/// Filepath(s) to the Aquatic tracker info-hash JSON/API
|
||||
///
|
||||
/// * PR #233 info-hash table implementation has multiple source tables for IPv4 and IPv6
|
||||
/// * PR#233 feature
|
||||
#[arg(short, long)]
|
||||
pub infohash_source: Vec<String>,
|
||||
|
||||
/// Directory path to store the `.torrent` files
|
||||
#[arg(short, long)]
|
||||
#[arg(long)]
|
||||
pub torrents_path: Option<String>,
|
||||
|
||||
/// Define custom tracker(s) to preload the `.torrent` files info
|
||||
#[arg(long)]
|
||||
pub torrent_tracker: Vec<String>,
|
||||
|
||||
/// Disable DHT resolver (useful with `torrent_tracker`)
|
||||
#[arg(long, default_value_t = false)]
|
||||
pub disable_dht: bool,
|
||||
|
||||
/// Crawl loop delay in seconds
|
||||
#[arg(short, long, default_value_t = 300)]
|
||||
pub sleep: u64,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue