Bug fix for href

This commit is contained in:
naibo 2023-07-19 11:55:21 +08:00
parent c71eb1fb06
commit 31c53617de
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@
"justMyCode": false,
// "args": ["--id", "[7]", "--read_type", "remote", "--headless", "0"]
// "args": ["--id", "[9]", "--read_type", "remote", "--headless", "0", "--saved_file_name", "YOUTUBE"]
"args": ["--id", "[83]", "--headless", "0", "--user_data", "1", "--keyboard", "0"]
"args": ["--id", "[7]", "--headless", "0", "--user_data", "1", "--keyboard", "0"]
}
]
}

View File

@ -1563,7 +1563,7 @@ class BrowserThread(Thread):
if relativeXPath.find("/@href") >= 0 or relativeXPath.find("/text()") >= 0 or relativeXPath.find("::text()") >= 0:
content_type = ""
elif p["nodeType"] == 2:
content_type = "/@href"
content_type = "//@href"
elif p["contentType"] == 1:
content_type = "/text()"
elif p["contentType"] == 0: