diff options
author | 2020-08-06 16:54:34 +0200 | |
---|---|---|
committer | 2020-08-08 18:21:59 +0200 | |
commit | e88b51ecc10b0e85db13afc43f0a6fd78753d546 (patch) | |
tree | 19a5495b9b4e88d56efe50715cbb4c33227eed8d /src/controller.cpp | |
parent | 5910794bca5b24bc224e2a4323c208f89e641db6 (diff) | |
download | newsboat-e88b51ecc10b0e85db13afc43f0a6fd78753d546.tar.gz newsboat-e88b51ecc10b0e85db13afc43f0a6fd78753d546.tar.zst newsboat-e88b51ecc10b0e85db13afc43f0a6fd78753d546.zip |
Integrate Miniflux into existing implementation
Diffstat (limited to 'src/controller.cpp')
-rw-r--r-- | src/controller.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/controller.cpp b/src/controller.cpp index 59078ed9..e8b6dd54 100644 --- a/src/controller.cpp +++ b/src/controller.cpp @@ -41,6 +41,8 @@ #include "inoreaderurlreader.h" #include "itemrenderer.h" #include "logger.h" +#include "minifluxapi.h" +#include "minifluxurlreader.h" #include "newsblurapi.h" #include "newsblururlreader.h" #include "ocnewsapi.h" @@ -288,6 +290,9 @@ int Controller::run(const CliArgsParser& args) } else if (type == "ocnews") { api = new OcNewsApi(&cfg); urlcfg = new OcNewsUrlReader(configpaths.url_file(), api); + } else if (type == "miniflux") { + api = new MinifluxApi(&cfg); + urlcfg = new MinifluxUrlReader(configpaths.url_file(), api); } else if (type == "inoreader") { const auto all_set = !cfg.get_configvalue("inoreader-app-id").empty() && !cfg.get_configvalue("inoreader-app-key").empty(); @@ -355,6 +360,11 @@ int Controller::run(const CliArgsParser& args) _("It looks like you haven't configured any " "feeds in your Inoreader account. Please do " "so, and try again.")); + } else if (type == "miniflux") { + msg = strprintf::fmt( + _("It looks like you haven't configured any " + "feeds in your Miniflux account. Please do " + "so, and try again.")); } else { assert(0); // shouldn't happen } |