diff --git a/.gitignore b/.gitignore index c6ec303..173c9ce 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ old_greps.sh torrents.db .vscode backups +torrents diff --git a/new_torrents_fetcher/src/main.rs b/new_torrents_fetcher/src/main.rs index 8679af3..8334cb2 100644 --- a/new_torrents_fetcher/src/main.rs +++ b/new_torrents_fetcher/src/main.rs @@ -47,7 +47,6 @@ fn main() { leetx(save_dir); skytorrents(save_dir); - if let Some(t) = matches.value_of("TORRENTS_CSV_FILE") { torrents_csv_scan(Path::new(t), save_dir); } @@ -62,6 +61,7 @@ fn torrents_csv_scan(torrents_csv_file: &Path, save_dir: &Path) { fn collect_info_hashes(torrents_csv_file: &Path) -> Vec { println!("Scanning torrent infohashes..."); let mut rdr = csv::ReaderBuilder::new() + .has_headers(false) .delimiter(b';') .from_path(torrents_csv_file) .unwrap();