fix: match priority

This commit is contained in:
Simon Ding
2024-10-20 16:36:34 +08:00
parent 1192d00fe0
commit 677923ea8a

View File

@@ -51,7 +51,7 @@ func (c *Client) GetIndexers() ([]*db.TorznabInfo, error) {
entIndexer := ent.Indexers{ entIndexer := ent.Indexers{
Name: in.Name, Name: in.Name,
Implementation: "torznab", Implementation: "torznab",
Priority: int(in.Priority), Priority: 128 - int(in.Priority),
SeedRatio: float32(seedRatio), SeedRatio: float32(seedRatio),
Settings: string(data), Settings: string(data),
} }