Skip to content

Commit 4d48e81

Browse files
Fixes a bug where Liben sometimes returns an extra table
1 parent 92f46b7 commit 4d48e81

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libgen_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def __init__(self, results, total):
9494

9595
@staticmethod
9696
def parse(node):
97-
SEARCH_ROW_SELECTOR = "//table[3]//tr"
97+
SEARCH_ROW_SELECTOR = "//body/table[last()]//tr"
9898

9999
result_rows = xpath(node, SEARCH_ROW_SELECTOR)
100100

0 commit comments

Comments
 (0)