feat: adjust indexer priority to the same as prowlarr

This commit is contained in:
Simon Ding
2025-04-23 16:24:20 +08:00
parent 2267b0450a
commit 8b11e72427
11 changed files with 62 additions and 5 deletions

View File

@@ -78,6 +78,8 @@ var (
DefaultEnableRss bool
// DefaultPriority holds the default value on creation for the "priority" field.
DefaultPriority int
// PriorityValidator is a validator for the "priority" field. It is called by the builders before save.
PriorityValidator func(int) error
// DefaultSeedRatio holds the default value on creation for the "seed_ratio" field.
DefaultSeedRatio float32
// DefaultDisabled holds the default value on creation for the "disabled" field.