From 2f098621665ccca8a3cdf4c1b6cb25e9460a58a4 Mon Sep 17 00:00:00 2001 From: vodkapmp <70449815+vodkapmp@users.noreply.github.com> Date: Tue, 31 Oct 2023 00:48:31 +0100 Subject: [PATCH] Update config autodownload (#62) * Update server.conf.template * Update startup_script.sh * Update README.md --- README.md | 2 ++ scripts/startup_script.sh | 2 ++ server.conf.template | 2 ++ 3 files changed, 6 insertions(+) diff --git a/README.md b/README.md index 6dcaaae..bcb8d26 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,8 @@ There are a number of environment variables available to configure Suwayomi: | **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 | +| **AUTO_DOWNLOAD_EXCLUDE_UNREAD** | `true` | Ignore automatic chapter downloads of entries with unread chapters +| **AUTO_DOWNLOAD_AHEAD_LIMIT** | `5` | 0 to disable - how many unread downloaded chapters should be available - if the limit is reached, new chapters won't be downloaded automatically | **MAX_SOURCES_IN_PARALLEL** | `6` | Range: 1 <= n <= 20 - Sets how many sources can do requests (updates, downloads) in parallel. Updates/Downloads are grouped by source and all mangas of a source are updated/downloaded synchronously | | **UPDATE_EXCLUDE_UNREAD** | `true` | If unread manga should be excluded from updates | | **UPDATE_EXCLUDE_STARTED** | `true` | If manga that haven't been started should be excluded from updates | diff --git a/scripts/startup_script.sh b/scripts/startup_script.sh index 870b5cd..1d64bf8 100755 --- a/scripts/startup_script.sh +++ b/scripts/startup_script.sh @@ -22,6 +22,8 @@ export WEB_UI_FLAVOR="${WEB_UI_FLAVOR:-"WebUI"}" export WEB_UI_CHANNEL="${WEB_UI_CHANNEL:-"stable"}" export WEB_UI_UPDATE_INTERVAL="${WEB_UI_UPDATE_INTERVAL:-23}" export AUTO_DOWNLOAD_CHAPTERS="${AUTO_DOWNLOAD_CHAPTERS:-false}" +export AUTO_DOWNLOAD_EXCLUDE_UNREAD="${AUTO_DOWNLOAD_EXCLUDE_UNREAD:-true}" +export AUTO_DOWNLOAD_AHEAD_LIMIT="${AUTO_DOWNLOAD_AHEAD_LIMIT:-5}" export MAX_SOURCES_IN_PARALLEL="${MAX_SOURCES_IN_PARALLEL:-6}" export UPDATE_EXCLUDE_UNREAD="${UPDATE_EXCLUDE_UNREAD:-true}" export UPDATE_EXCLUDE_STARTED="${UPDATE_EXCLUDE_STARTED:-true}" diff --git a/server.conf.template b/server.conf.template index 407d4c8..9675a11 100644 --- a/server.conf.template +++ b/server.conf.template @@ -20,6 +20,8 @@ server.webUIUpdateCheckInterval = ${WEB_UI_UPDATE_INTERVAL} # time in hours - 0 server.downloadAsCbz = ${DOWNLOAD_AS_CBZ} server.downloadsPath = "" server.autoDownloadNewChapters = ${AUTO_DOWNLOAD_CHAPTERS} # if new chapters that have been retrieved should get automatically downloaded +server.excludeEntryWithUnreadChapters = ${AUTO_DOWNLOAD_EXCLUDE_UNREAD} # ignore automatic chapter downloads of entries with unread chapters +server.autoDownloadAheadLimit = ${AUTO_DOWNLOAD_AHEAD_LIMIT} # 0 to disable it - how many unread downloaded chapters should be available - if the limit is reached, new chapters won't be downloaded automatically # requests server.maxSourcesInParallel = ${MAX_SOURCES_IN_PARALLEL} # range: 1 <= n <= 20 - default: 6 - sets how many sources can do requests (updates, downloads) in parallel. updates/downloads are grouped by source and all mangas of a source are updated/downloaded synchronously