mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-10 22:34:33 -05:00
Add support for configuring which categories are downloaded automatically (#832)
* Rename IncludeInUpdate class to IncludeOrExclude Signed-off-by: Chance Zibolski <chance.zibolski@gmail.com> * Add support for configuring which categories are downloaded automatically If a manga has no configured categories, behavior remains the same and the automatic download functionality will download new chapters without consulting the category includeInDownload configuration. Signed-off-by: Chance Zibolski <chance.zibolski@gmail.com> --------- Signed-off-by: Chance Zibolski <chance.zibolski@gmail.com>
This commit is contained in:
@@ -65,14 +65,15 @@ object CategoryController {
|
||||
formParam<String?>("name"),
|
||||
formParam<Boolean?>("default"),
|
||||
formParam<Int?>("includeInUpdate"),
|
||||
formParam<Int?>("includeInDownload"),
|
||||
documentWith = {
|
||||
withOperation {
|
||||
summary("Category modify")
|
||||
description("Modify a category")
|
||||
}
|
||||
},
|
||||
behaviorOf = { ctx, categoryId, name, isDefault, includeInUpdate ->
|
||||
Category.updateCategory(categoryId, name, isDefault, includeInUpdate)
|
||||
behaviorOf = { ctx, categoryId, name, isDefault, includeInUpdate, includeInDownload ->
|
||||
Category.updateCategory(categoryId, name, isDefault, includeInUpdate, includeInDownload)
|
||||
ctx.status(200)
|
||||
},
|
||||
withResults = {
|
||||
|
||||
Reference in New Issue
Block a user