introduced text limit of 2000 chars
This commit is contained in:
parent
b25a09608f
commit
a184b9f231
|
@ -1,6 +1,6 @@
|
|||
cmake_minimum_required (VERSION 3.7)
|
||||
project (mastorss
|
||||
VERSION 0.5.14
|
||||
VERSION 0.5.15
|
||||
LANGUAGES CXX
|
||||
)
|
||||
|
||||
|
|
|
@ -123,6 +123,12 @@ std::vector<string> parse_website(const string &xml)
|
|||
if (!config[profile]["titles_only"].asBool())
|
||||
{
|
||||
str += "\n\n" + desc;
|
||||
|
||||
// Shrink overly long texts, to speed up replace operations
|
||||
if (str.length() > 2000)
|
||||
{
|
||||
str.resize(2000);
|
||||
}
|
||||
}
|
||||
|
||||
bool skipthis = false;
|
||||
|
|
Loading…
Reference in New Issue
Block a user