Implement SyncYomi

This commit is contained in:
Bartu Özen
2025-12-10 21:50:30 +03:00
parent 817589f710
commit 56de3cc055
18 changed files with 919 additions and 3 deletions

View File

@@ -1016,6 +1016,26 @@ class ServerConfig(
description = "Use Hikari Connection Pool to connect to the database.",
)
val syncYomiEnabled: MutableStateFlow<Boolean> by BooleanSetting(
protoNumber = 86,
defaultValue = false,
group = SettingGroup.SYNCYOMI,
privacySafe = true
)
val syncYomiHost: MutableStateFlow<String> by StringSetting(
protoNumber = 87,
defaultValue = "",
group = SettingGroup.SYNCYOMI,
privacySafe = true,
)
val syncYomiApiKey: MutableStateFlow<String> by StringSetting(
protoNumber = 88,
defaultValue = "",
group = SettingGroup.SYNCYOMI,
privacySafe = false,
)
/** ****************************************************************** **/

View File

@@ -17,6 +17,7 @@ enum class SettingGroup(
CLOUDFLARE("Cloudflare"),
OPDS("OPDS"),
KOREADER_SYNC("KOReader sync"),
SYNCYOMI("SyncYomi")
;
override fun toString(): String = value