Fix procedura dopo codice debug.

This commit is contained in:
Emiliano Vavassori 2023-01-05 01:33:26 +01:00
parent da31e1655b
commit 38a78860b0
1 changed files with 1 additions and 3 deletions

View File

@ -125,9 +125,7 @@ class Build(loaih.RemoteBuild):
path_arr = [ self.storage_path, '' ] path_arr = [ self.storage_path, '' ]
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( matching = etree.HTML(urllib.request.urlopen(path).read()).xpath(
str.join('/', path)
).read()).xpath(
f"//a[contains(@href, '{name}')/@href" f"//a[contains(@href, '{name}')/@href"
) )