mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-02 10:24:35 -05:00
Implement SyncYomi
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
|
||||
/** ****************************************************************** **/
|
||||
|
||||
@@ -17,6 +17,7 @@ enum class SettingGroup(
|
||||
CLOUDFLARE("Cloudflare"),
|
||||
OPDS("OPDS"),
|
||||
KOREADER_SYNC("KOReader sync"),
|
||||
SYNCYOMI("SyncYomi")
|
||||
;
|
||||
|
||||
override fun toString(): String = value
|
||||
|
||||
Reference in New Issue
Block a user