From e92cfc2d458e97d1bf4c36ea256c468af2efb266 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 14 Nov 2018 13:30:08 -0700 Subject: [PATCH] Adding replace lines. --- new_torrents_fetcher/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/new_torrents_fetcher/src/main.rs b/new_torrents_fetcher/src/main.rs index b6be744..e4f6535 100644 --- a/new_torrents_fetcher/src/main.rs +++ b/new_torrents_fetcher/src/main.rs @@ -70,8 +70,8 @@ fn skytorrents() { .expect("Time went backwards") .as_secs(); - let seeders = row.find(Name("td")).nth(4).unwrap().text(); - let leechers = row.find(Name("td")).nth(5).unwrap().text(); + let seeders = row.find(Name("td")).nth(4).unwrap().text().replace(",",""); + let leechers = row.find(Name("td")).nth(5).unwrap().text().replace(",",""); // infohash;name;size_bytes;created_unix;seeders;leechers;completed;scraped_date