fixed bug with titles_only
This commit is contained in:
parent
bc361e38be
commit
c187837f8d
|
@ -1,6 +1,6 @@
|
||||||
cmake_minimum_required (VERSION 3.7)
|
cmake_minimum_required (VERSION 3.7)
|
||||||
project (mastorss
|
project (mastorss
|
||||||
VERSION 0.5.0
|
VERSION 0.5.1
|
||||||
LANGUAGES CXX
|
LANGUAGES CXX
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -113,7 +113,7 @@ std::uint16_t read_config(string &instance, string &access_token, string &feedur
|
||||||
config[profile]["feedurl"] = feedurl;
|
config[profile]["feedurl"] = feedurl;
|
||||||
config_changed = true;
|
config_changed = true;
|
||||||
}
|
}
|
||||||
if (!config[profile]["titles_only"].asBool())
|
if (config[profile]["titles_only"].isNull())
|
||||||
{
|
{
|
||||||
string titles_only;
|
string titles_only;
|
||||||
cout << "post only titles? [y/n]: ";
|
cout << "post only titles? [y/n]: ";
|
||||||
|
|
|
@ -110,7 +110,7 @@ std::vector<string> parse_website(const string &xml)
|
||||||
string desc = v.second.get_child("description").data();
|
string desc = v.second.get_child("description").data();
|
||||||
|
|
||||||
string str = title;
|
string str = title;
|
||||||
if (!config[profile]["titles_only"])
|
if (!config[profile]["titles_only"].asBool())
|
||||||
{
|
{
|
||||||
str += "\n\n" + desc;
|
str += "\n\n" + desc;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user