diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-06-07 04:31:30 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-06-07 04:31:30 +0200 |
commit | a0dbe64272d051671bc120b1845c7485264b097d (patch) | |
tree | fdd5daf29cfd541624b9c5f06e9a171f7becd58b /src/QuickMedia.cpp | |
parent | 5ccd94a771cf1031b837c7bc4d0baeab4b810a38 (diff) |
Add support for mangatown
Diffstat (limited to 'src/QuickMedia.cpp')
-rw-r--r-- | src/QuickMedia.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index 644c644..6cd92b7 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -1,5 +1,6 @@ #include "../include/QuickMedia.hpp" #include "../plugins/Manganelo.hpp" +#include "../plugins/Mangatown.hpp" #include "../plugins/Mangadex.hpp" #include "../plugins/Youtube.hpp" #include "../plugins/Pornhub.hpp" @@ -99,7 +100,7 @@ namespace QuickMedia { static void usage() { fprintf(stderr, "usage: QuickMedia <plugin> [--tor]\n"); fprintf(stderr, "OPTIONS:\n"); - fprintf(stderr, "plugin The plugin to use. Should be either 4chan, manganelo, mangadex, pornhub, youtube or dmenu\n"); + fprintf(stderr, "plugin The plugin to use. Should be either 4chan, manganelo, mangatown, mangadex, pornhub, youtube or dmenu\n"); fprintf(stderr, "--tor Use tor. Disabled by default\n"); fprintf(stderr, "EXAMPLES:\n"); fprintf(stderr, "QuickMedia manganelo\n"); @@ -141,6 +142,9 @@ namespace QuickMedia { if(strcmp(argv[i], "manganelo") == 0) { current_plugin = new Manganelo(); plugin_logo_path = "../../../images/manganelo_logo.png"; + } else if(strcmp(argv[i], "mangatown") == 0) { + current_plugin = new Mangatown(); + plugin_logo_path = "../../../images/mangatown_logo.png"; } else if(strcmp(argv[i], "mangadex") == 0) { current_plugin = new Mangadex(); plugin_logo_path = "../../../images/mangadex_logo.png"; |