From ab3792d2d7985ecc9049b6d341567ba42ef0ab33 Mon Sep 17 00:00:00 2001 From: Kubat <mael.martin31@gmail.com> Date: Mon, 28 Sep 2020 15:08:21 +0200 Subject: [PATCH] CONF: Update default config file to take into account new routes and add the fav and plt routes --- inc/lektor/config.def | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/inc/lektor/config.def b/inc/lektor/config.def index 3f222fd4..a510c7bc 100644 --- a/inc/lektor/config.def +++ b/inc/lektor/config.def @@ -10,11 +10,11 @@ value("max_clients", "16") section("database") value("kara_dir", "/home/kara") /* All the folder and sub folder - must be on the same partition */ + * must be on the same partition */ value("db_path", "/home/kara/kara.db") /* The repo module, here to be able to sync the bakabase with kurisu or - any other server, if configured correctly */ + * any other server, if configured correctly */ section("repo") value("obfuscate", "1") value("module", "repo") @@ -22,12 +22,14 @@ value("name", "Kurisu") value("workers_count", "2") value("url", "https://kurisu.iiens.net") value("json", "https://kurisu.iiens.net/api") -value("id_json", "https://kurisu.iiens.net/api?id=%ld") -value("id_kara", "https://kurisu.iiens.net/download.php?id=%ld") +value("id_json", "https://kurisu.iiens.net/api/%ld") +value("id_kara", "https://kurisu.iiens.net/api/download/%ld") +value("fav_json", "https://kurisu.iiens.net/api/fav/%s") +value("plt_json", "https://kurisu.iiens.net/api/plt/%s") /* The player module, so that people can 'sing' when using lektor. By - default it's sdl, but one can create any module, for audio support - only for example. */ + * default it's sdl, but one can create any module, for audio support + * only for example. */ section("player") value("module", "sdl2") value("autoclear", "true") @@ -40,15 +42,17 @@ value("font_name", "Hack Nerd Font") value("msg_duration", "4") value_opt("force_x11", "1") /* Force libmpv to use x11, may segfault on some PCs... */ -/* To place hooks, when some things are done in lektor. The default value 'none' is here so that - nothing happens. Like any module, the value can point to a module or a function in the internal - register. To specify multiple modules, use a comma separated list, line this: - `kara_load = print_stdout, print_stderr` - For the moment, only functions in the server register are supported. - NOTE: All the functions will recieve a va_list as a unique argument. */ +/* To place hooks, when some things are done in lektor. The default value + * 'none' is here so that nothing happens. Like any module, the value can point + * to a module or a function in the internal register. To specify multiple + * modules, use a comma separated list, line this: `kara_load = print_stdout, + * print_stderr`. For the moment, only functions in the server register are + * supported. + * NOTE: All the functions will recieve a va_list as a unique argument. */ section("hook") value("kara_load", "none") /* Before a kara is loaded to be played, - the 'player' module needs to support it */ -value("queue_begin", "none") /* On play, when the player is not already playing or paused */ + * the 'player' module needs to support it */ +value("queue_begin", "none") /* On play, when the player is not already playing + * or paused */ // vi:syntax=c -- GitLab