From 410a2dc7ce78b60ee5c3bba4d16083848246bae3 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 14 Apr 2018 14:46:27 +0200 Subject: [PATCH] fixed global tags (regression from json-lib change) --- CMakeLists.txt | 2 +- src/parse.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 10cd23e..aeabada 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required (VERSION 3.7) project (mastorss - VERSION 0.5.2 + VERSION 0.5.3 LANGUAGES CXX ) diff --git a/src/parse.cpp b/src/parse.cpp index a75f14f..9de5e43 100644 --- a/src/parse.cpp +++ b/src/parse.cpp @@ -89,7 +89,7 @@ std::vector parse_website(const string &xml) } // Read global hashtags or fail silently - for (const Json::Value &value : list["global.tags"]) + for (const Json::Value &value : list["global"]["tags"]) { watchwords.push_back(value.asString()); }