From da31e1655bc6cbe87c29dbe26abd60d2d6bc0a53 Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Thu, 5 Jan 2023 01:30:06 +0100 Subject: [PATCH] Aggiunta codice debug. --- loaih/build.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/loaih/build.py b/loaih/build.py index 8124c7a..6069c14 100644 --- a/loaih/build.py +++ b/loaih/build.py @@ -123,8 +123,10 @@ class Build(loaih.RemoteBuild): path_arr = self.relative_path.insert(0, self.storage_path) else: path_arr = [ self.storage_path, '' ] + path = str.join('/', path_arr) + print(f"DEBUG - Name: {name}, URL: {path}") matching = etree.HTML(urllib.request.urlopen( - str.join('/', path_arr) + str.join('/', path) ).read()).xpath( f"//a[contains(@href, '{name}')/@href" )