1
0

Fix sintassi xpath.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Emiliano Vavassori 2023-01-05 01:36:53 +01:00
parent 38a78860b0
commit 05533bf5e2

View File

@ -126,7 +126,7 @@ class Build(loaih.RemoteBuild):
path = str.join('/', path_arr) path = str.join('/', path_arr)
print(f"DEBUG - Name: {name}, URL: {path}") print(f"DEBUG - Name: {name}, URL: {path}")
matching = etree.HTML(urllib.request.urlopen(path).read()).xpath( matching = etree.HTML(urllib.request.urlopen(path).read()).xpath(
f"//a[contains(@href, '{name}')/@href" f"//a[contains(@href, '{name}')]/@href"
) )
if len(matching) > 0: if len(matching) > 0: