From 1128b1fcd885628220ce211cafc5b88b77731832 Mon Sep 17 00:00:00 2001 From: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com> Date: Sat, 11 Feb 2023 11:46:46 -0300 Subject: [PATCH] [skip ci] Add info on extensions-lib 1.4 changes (#15311) * [skip ci] Add info on extensions-lib 1.4 changes. * [skip ci] Fix a wrong word. --- CONTRIBUTING.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 478755965..df738d32d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -350,6 +350,9 @@ open class UriPartFilter(displayName: String, private val vals: Array" -a android.intent.action.VIEW ``` +#### Update strategy + +There is some cases where titles in a source will always only have the same chapter list (i.e. immutable), and don't need to be included in a global update of the app because of that, saving a lot of requests and preventing causing unnecessary damage to the source servers. To change the update strategy of a `SManga`, use the `update_strategy` field. You can find below a description of the current possible values. + +- `UpdateStrategy.ALWAYS_UPDATE`: Titles marked as always update will be included in the library update if they aren't excluded by additional restrictions. +- `UpdateStrategy.ONLY_FETCH_ONCE`: Titles marked as only fetch once will be automatically skipped during library updates. Useful for cases where the series is previously known to be finished and have only a single chapter, for example. + +If not set, it defaults to `ALWAYS_UPDATE`. + #### Renaming existing sources There is some cases where existing sources changes their name on the website. To correctly reflect these changes in the extension, you need to explicity set the `id` to the same old value, otherwise it will get changed by the new `name` value and users will be forced to migrate back to the source.