Forgot to add tbody. #50

This commit is contained in:
Dessalines 2019-02-19 16:39:38 -08:00
parent 6ae4d8e134
commit 8a405f205d
1 changed files with 1 additions and 1 deletions

View File

@ -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,