Aggiunta codice debug.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
ae9668554a
commit
da31e1655b
@ -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"
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user