Forgot to add tbody. #50
This commit is contained in:
parent
6ae4d8e134
commit
8a405f205d
|
@ -187,7 +187,7 @@ fn thepiratebay(save_dir: &Path) {
|
||||||
_err => continue,
|
_err => continue,
|
||||||
};
|
};
|
||||||
let document = Document::from(&html[..]);
|
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) {
|
let hash_td = match row.find(Name("td").descendant(Name("a"))).nth(3) {
|
||||||
Some(t) => t,
|
Some(t) => t,
|
||||||
None => continue,
|
None => continue,
|
||||||
|
|
Loading…
Reference in New Issue