From 99a843e0a21a8c3104a012c859529c5514bcf543 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 21 Nov 2020 20:09:35 +0100 Subject: [PATCH] Don't try to parse watchwords if add_hashtags is false. --- src/document.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/document.cpp b/src/document.cpp index 98fe69b..e8f5e6a 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -147,7 +147,10 @@ void Document::download() void Document::parse() { - parse_watchwords(); + if (_profiledata.add_hashtags) + { + parse_watchwords(); + } pt::ptree tree; istringstream iss{_raw_doc}; pt::read_xml(iss, tree);