diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2018-03-07 00:03:51 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2018-03-07 00:04:40 +0000 |
commit | 6fa901871df81cd8ecdc07d30ef1a20d8c7b1b1d (patch) | |
tree | 7b79dcde28aa9f190e6d28aa4e6634e7ddccf34e /service/apiImpl.cpp | |
parent | Wrap support for making unique ptrs from functions (diff) | |
download | mirrorsearch-6fa901871df81cd8ecdc07d30ef1a20d8c7b1b1d.tar.bz2 mirrorsearch-6fa901871df81cd8ecdc07d30ef1a20d8c7b1b1d.tar.xz mirrorsearch-6fa901871df81cd8ecdc07d30ef1a20d8c7b1b1d.zip |
Store parser flags in service config
Diffstat (limited to 'service/apiImpl.cpp')
-rw-r--r-- | service/apiImpl.cpp | 4 |
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); |