Aggiunta codice debug.

This commit is contained in:
Emiliano Vavassori 2023-01-05 01:30:06 +01:00
parent ae9668554a
commit da31e1655b
1 changed files with 3 additions and 1 deletions

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"
) )