Minor fix to new torrent fetcher.
This commit is contained in:
parent
8e5ab798e9
commit
5494e87cdd
|
@ -3,3 +3,4 @@ old_greps.sh
|
|||
torrents.db
|
||||
.vscode
|
||||
backups
|
||||
torrents
|
||||
|
|
|
@ -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<String> {
|
||||
println!("Scanning torrent infohashes...");
|
||||
let mut rdr = csv::ReaderBuilder::new()
|
||||
.has_headers(false)
|
||||
.delimiter(b';')
|
||||
.from_path(torrents_csv_file)
|
||||
.unwrap();
|
||||
|
|
Loading…
Reference in New Issue