From 8a405f205de7c6f843ffb128595e84a5c049b3c2 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Tue, 19 Feb 2019 16:39:38 -0800 Subject: [PATCH] Forgot to add tbody. #50 --- new_torrents_fetcher/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/new_torrents_fetcher/src/main.rs b/new_torrents_fetcher/src/main.rs index 2199456..ffca4f0 100644 --- a/new_torrents_fetcher/src/main.rs +++ b/new_torrents_fetcher/src/main.rs @@ -187,7 +187,7 @@ fn thepiratebay(save_dir: &Path) { _err => continue, }; let document = Document::from(&html[..]); - for row in document.find(Attr("id", "searchResult").descendant(Name("tr"))) { + for row in document.find(Attr("id", "searchResult").descendant(Name("tbody")).descendant(Name("tr"))) { let hash_td = match row.find(Name("td").descendant(Name("a"))).nth(3) { Some(t) => t, None => continue,