1
0

Aggiunta codice debug.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Emiliano Vavassori 2023-01-05 01:30:06 +01:00
parent ae9668554a
commit da31e1655b

View File

@ -123,8 +123,10 @@ class Build(loaih.RemoteBuild):
path_arr = self.relative_path.insert(0, self.storage_path) path_arr = self.relative_path.insert(0, self.storage_path)
else: else:
path_arr = [ self.storage_path, '' ] path_arr = [ self.storage_path, '' ]
path = str.join('/', path_arr)
print(f"DEBUG - Name: {name}, URL: {path}")
matching = etree.HTML(urllib.request.urlopen( matching = etree.HTML(urllib.request.urlopen(
str.join('/', path_arr) str.join('/', path)
).read()).xpath( ).read()).xpath(
f"//a[contains(@href, '{name}')/@href" f"//a[contains(@href, '{name}')/@href"
) )