aboutsummaryrefslogtreecommitdiff
path: root/src/controller.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/controller.cpp')
-rw-r--r--src/controller.cpp10
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
}