diff --git a/CMakeLists.txt b/CMakeLists.txt index 9c70e22..42187d7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,7 @@ cmake_minimum_required (VERSION 3.7) include(GNUInstallDirs) project (rss2mastodon - VERSION 0.1.1 + VERSION 0.1.2 LANGUAGES CXX ) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -Wall") diff --git a/src/rss2mastodon.cpp b/src/rss2mastodon.cpp index a42e3bf..deee8ef 100644 --- a/src/rss2mastodon.cpp +++ b/src/rss2mastodon.cpp @@ -22,6 +22,8 @@ #include #include #include +#include +#include #include #include #include @@ -96,6 +98,7 @@ std::vector parse_website(const string &profile, const string &xml) { // most likely file not found std::cerr << "ERROR: " << filepath << "watchwords.json not found or not readable.\n"; + std::cerr << e.what() << '\n'; return {}; } @@ -214,6 +217,8 @@ int main(int argc, char *argv[]) std::cerr << "Error code: " << ret << '\n'; return ret; } + + std::this_thread::sleep_for(std::chrono::seconds(2)); } return 0; diff --git a/watchwords.json b/watchwords.json index 06c5c56..6210b9b 100644 --- a/watchwords.json +++ b/watchwords.json @@ -21,63 +21,13 @@ "Erfurt" ] }, - "anfdeutsch": + "example": { "tags": [ - "Syrien", - "Efrîn", - "Afrin", - "Kobanî", - "Kobanê", - "Şehba", - "Cizîrê", - "Heleb", - "Aleppo", - "Amûdê", - "Amûdê", - "Basûtê", - "Basuta", - "Şam", - "Damaskus", - "Dirbêsî", - "Hesîçe", - "Jindrêsê", - "Cindirêsê", - "Qitmê", - "Tirbesipî", - "Raco", - "Qamişlo", - "Keferjenê", - "Bilbilê", - "Bilbile", - "Minbic", - "Badina", - "Mebata", - "Rojava", - "Kilis", - "Şırnak", - "Şirnex", - "Silêmanî", - "Erbil", - "Hewlêr", - "Arbil", - "Köln", - "Basel", - "QSD", - "YPJ", - "YPG", - "Türkei", - "KCK", - "HDP", - "PKK", - "Gabriel", - "Erdoğan", - "Putin", - "Assad", - "Öcalan", - "NATO", - "DIK" + "banana", + "apple", + "mastodon" ] } }