introduced text limit of 2000 chars

This commit is contained in:
tastytea 2018-05-07 23:09:21 +02:00
parent b25a09608f
commit a184b9f231
Signed by: tastytea
GPG Key ID: 59346E0EA35C67E5
2 changed files with 7 additions and 1 deletions

View File

@ -1,6 +1,6 @@
cmake_minimum_required (VERSION 3.7)
project (mastorss
VERSION 0.5.14
VERSION 0.5.15
LANGUAGES CXX
)

View File

@ -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;