New FimFiction.net API downloading:
[nikiroo-utils.git] / src / be / nikiroo / fanfix / bundles / Config.java
index a38b9e2d114327fb6f77c58efec92d7c200b05c7..ae60b75b3b74eb6bb35f13e4d179bfb81fabd32a 100644 (file)
@@ -12,8 +12,8 @@ import be.nikiroo.utils.resources.Meta.Format;
 public enum Config {
        @Meta(description = "language (example: en-GB, fr-BE...) or nothing for default system language", format = Format.LOCALE, info = "Force the language (can be overwritten again with the env variable $LANG)")
        LANG, //
-       @Meta(description = "reader type (CLI = simple output to console, LOCAL = use local system file handler)", format = Format.FIXED_LIST, list = {
-                       "CLI", "LOCAL" }, info = "Select the default reader to use to read stories")
+       @Meta(description = "reader type (CLI = simple output to console, TUI = Text User Interface with menus and windows, GUI = a GUI with locally stored files)", format = Format.FIXED_LIST, list = {
+                       "CLI", "GUI", "TUI" }, info = "Select the default reader to use to read stories")
        READER_TYPE, //
        @Meta(description = "absolute path, $HOME variable supported, / is always accepted as dir separator", format = Format.DIRECTORY, info = "The directory where to store temporary files, defaults to directory 'tmp' in the conig directory (usually $HOME/.fanfix)")
        CACHE_DIR, //
@@ -54,5 +54,13 @@ public enum Config {
        @Meta(description = "Login information (password) for YiffStar to have access to all the stories (should not be necessary anymore)", format = Format.PASSWORD)
        LOGIN_YIFFSTAR_PASS, //
        @Meta(description = "If the last update check was done at least that many days, check for updates at startup (-1 for 'no checks' -- default is 1 day)", format = Format.INT)
-       UPDATE_INTERVAL,
+       UPDATE_INTERVAL, //
+       @Meta(description = "An API key required to create a token from FimFiction", format = Format.STRING)
+       LOGIN_FIMFICTION_APIKEY_CLIENT_ID, //
+       @Meta(description = "An API key required to create a token from FimFiction", format = Format.PASSWORD)
+       LOGIN_FIMFICTION_APIKEY_CLIENT_SECRET, //
+       @Meta(description = "Do not use the new API, even if we have a token, and force HTML scraping", format = Format.BOOLEAN)
+       LOGIN_FIMFICTION_APIKEY_FORCE_HTML, //
+       @Meta(description = "A token is required to use the beta APIv2 from FimFiction (see APIKEY_CLIENT_*)", format = Format.PASSWORD)
+       LOGIN_FIMFICTION_APIKEY_TOKEN, //
 }