summaryrefslogtreecommitdiff
path: root/service/apiImpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'service/apiImpl.cpp')
-rw-r--r--service/apiImpl.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/service/apiImpl.cpp b/service/apiImpl.cpp
index 1de31cb..28d88b4 100644
--- a/service/apiImpl.cpp
+++ b/service/apiImpl.cpp
@@ -64,9 +64,7 @@ namespace MirrorSearch {
{
auto fmt = AdHoc::Buffer::getFormat(s->baseurl);
auto url = (*fmt % fn).str();
- auto doc = getDoc(url,
- HTML_PARSE_RECOVER | HTML_PARSE_NODEFDTD | HTML_PARSE_NOIMPLIED |
- HTML_PARSE_NOWARNING | HTML_PARSE_NOERROR);
+ auto doc = getDoc(url, s->parserflags);
auto xpathCtx = getXPathCxt(doc);
auto xpathObj = getXPathObj(s->listxpath, xpathCtx, xmlXPathObjectType::XPATH_NODESET);
log->messagebf(LOG::INFO, "%d nodes matched %s", xpathObj->nodesetval->nodeNr, s->listxpath);