From 7511623c60f480726df3b48f9ae0c3f7ee649f6a Mon Sep 17 00:00:00 2001 From: Syer10 Date: Wed, 10 Sep 2025 12:17:56 -0400 Subject: [PATCH] Add updated KOReader variables --- .github/workflows/container.yml | 3 ++- README.md | 11 ++++++----- scripts/startup_script.sh | 3 ++- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml index 04245f8..3dad2ae 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/container.yml @@ -168,8 +168,9 @@ jobs: -e KOREADER_SYNC_USERKEY=hello123 \ -e KOREADER_SYNC_DEVICE_ID=100 \ -e KOREADER_SYNC_CHECKSUM_METHOD=filename \ - -e KOREADER_SYNC_STRATEGY=send \ -e KOREADER_SYNC_PERCENTAGE_TOLERANCE=0.001 \ + -e KOREADER_SYNC_STRATEGY_FORWARD=disabled \ + -e KOREADER_SYNC_STRATEGY_BACKWARD=prompt \ -e DATABASE_TYPE=H2 \ -e DATABASE_URL=postgresql://localhost:5432/suwayomi \ -e DATABASE_USERNAME=manga \ diff --git a/README.md b/README.md index 79fdb9d..44d5f0a 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ There are a number of environment variables available to configure Suwayomi: | **MAX_LOG_FILE_SIZE** | `10mb` | The max size of a log file - Possible values: 1 (bytes), 1KB (kilobytes), 1MB (megabytes), 1GB (gigabytes) | | **MAX_LOG_FOLDER_SIZE** | `100mb` | The max size of all saved log files - Possible values: 1 (bytes), 1KB (kilobytes), 1MB (megabytes), 1GB (gigabytes) | | **WEB_UI_ENABLED** | `true` | If the server should serve a webUI | -| **WEB_UI_FLAVOR** | `WebUI` | "WebUI" or "Custom" | +| **WEB_UI_FLAVOR** | `WebUI` | `WebUI` or `Custom` | | **WEB_UI_CHANNEL** | `stable` | "bundled" (the version bundled with the server release), "stable" or "preview" - the webUI version that should be used | | **WEB_UI_UPDATE_INTERVAL** | `23` | Time in hours - 0 to disable auto update - range: 1 <= n < 24 - how often the server should check for webUI updates | | **AUTO_DOWNLOAD_CHAPTERS** | `false` | If new chapters that have been retrieved should get automatically downloaded | @@ -88,15 +88,16 @@ There are a number of environment variables available to configure Suwayomi: | **OPDS_MARK_AS_READ_ON_DOWNLOAD** | `false` | Automatically mark chapters as read when you download them | | **OPDS_SHOW_ONLY_UNREAD_CHAPTERS** | `false` | Filter manga feed to display only chapters you haven't read | | **OPDS_SHOW_ONLY_DOWNLOADED_CHAPTERS** | `false` | Filter manga feed to display only chapters you have downloaded | -| **OPDS_CHAPTER_SORT_ORDER** | `DESC` | "DESC" or "ASC" | +| **OPDS_CHAPTER_SORT_ORDER** | `DESC` | `DESC` or `ASC` | | **KOREADER_SYNC_SERVER_URL** | `http://localhost:17200` | The URL of the KOReader Sync server | | **KOREADER_SYNC_USERNAME** | ` ` | KOReader Sync UserName | | **KOREADER_SYNC_USERKEY** | ` ` | KOReader Sync UserKey | | **KOREADER_SYNC_DEVICE_ID** | ` ` | The Device-ID for KOReader | -| **KOREADER_SYNC_CHECKSUM_METHOD** | `binary` | "binary" or "filename" | -| **KOREADER_SYNC_STRATEGY** | `disabled` | "prompt", "silent", "send", "receive", "disabled" | +| **KOREADER_SYNC_CHECKSUM_METHOD** | `binary` | `binary` or `filename` | | **KOREADER_SYNC_PERCENTAGE_TOLERANCE** | `0.00000000000001` | Absolute tolerance for progress comparison from 1 (widest) to 1e-15 (strict) | -| **DATABASE_TYPE** | `h2` | "h2" or "postgresql" | +| **KOREADER_SYNC_STRATEGY_FORWARD** | `prompt` | `prompt`, `keep_local`, `keep_remote`, `disabled` | +| **KOREADER_SYNC_STRATEGY_BACKWARD** | `disabled` | `prompt`, `keep_local`, `keep_remote`, `disabled` | +| **DATABASE_TYPE** | `h2` | `h2` or `postgresql` | | **DATABASE_URL** | `postgresql://localhost:5432/suwayomi` | The URL of the database, only used for non-h2 database | | **DATABASE_USERNAME** | ` ` | Database username, only used for non-h2 database | | **DATABASE_PASSWORD** | ` ` | Database password, only used for non-h2 database | diff --git a/scripts/startup_script.sh b/scripts/startup_script.sh index 64ad281..73c6e35 100755 --- a/scripts/startup_script.sh +++ b/scripts/startup_script.sh @@ -115,8 +115,9 @@ sed -i -r "s/server.koreaderSyncUsername = \"(.*?)\"( #)?/server.koreaderSyncUse sed -i -r "s/server.koreaderSyncUserkey = \"(.*?)\"( #)?/server.koreaderSyncUserkey = \"${KOREADER_SYNC_USERKEY:-\1}\" #/" /home/suwayomi/.local/share/Tachidesk/server.conf sed -i -r "s/server.koreaderSyncDeviceId = \"(.*?)\"( #)?/server.koreaderSyncDeviceId = \"${KOREADER_SYNC_DEVICE_ID:-\1}\" #/" /home/suwayomi/.local/share/Tachidesk/server.conf sed -i -r "s/server.koreaderSyncChecksumMethod = \"*([a-zA-Z0-9_]+)\"*( #)?/server.koreaderSyncChecksumMethod = ${KOREADER_SYNC_CHECKSUM_METHOD:-\1} #/" /home/suwayomi/.local/share/Tachidesk/server.conf -sed -i -r "s/server.koreaderSyncStrategy = \"*([a-zA-Z0-9_]+)\"*( #)?/server.koreaderSyncStrategy = ${KOREADER_SYNC_STRATEGY:-\1} #/" /home/suwayomi/.local/share/Tachidesk/server.conf sed -i -r "s/server.koreaderSyncPercentageTolerance = ([-0-9\.Ee]+)?( #)/server.koreaderSyncPercentageTolerance = ${KOREADER_SYNC_PERCENTAGE_TOLERANCE:-\1} #/" /home/suwayomi/.local/share/Tachidesk/server.conf +sed -i -r "s/server.koreaderSyncStrategyForward = \"*([a-zA-Z0-9_]+)\"*( #)?/server.koreaderSyncStrategyForward = ${KOREADER_SYNC_STRATEGY_FORWARD:-\1} #/" /home/suwayomi/.local/share/Tachidesk/server.conf +sed -i -r "s/server.koreaderSyncStrategyBackward = \"*([a-zA-Z0-9_]+)\"*( #)?/server.koreaderSyncStrategyBackward = ${KOREADER_SYNC_STRATEGY_BACKWARD:-\1} #/" /home/suwayomi/.local/share/Tachidesk/server.conf # database sed -i -r "s/server.databaseType = \"*([a-zA-Z0-9_]+)\"*( #)?/server.databaseType = ${DATABASE_TYPE:-\1} #/" /home/suwayomi/.local/share/Tachidesk/server.conf