update
This commit is contained in:
@@ -239,7 +239,7 @@ class HTMLDownloadHandler(DownloadHandler):
|
||||
new_url = self.__download_image(tag["src"], host, base_url)
|
||||
processed[tag["src"]] = new_url
|
||||
if new_url:
|
||||
tag["src"] = new_url
|
||||
tag["src"] = os.path.basename(new_url)
|
||||
except Exception as e:
|
||||
logging.error("Failed to download image: %s, skipping...", tag["src"], exc_info=e)
|
||||
|
||||
|
Reference in New Issue
Block a user