fix(indexers): delete feed with indexer (#1810)

* fix(indexers): delete feed in one go

* fix(indexers): sort imports

* refactor(feeds): db methods for find
This commit is contained in:
ze0s 2024-11-06 20:48:46 +01:00 committed by GitHub
parent 41216babe6
commit 40fe3e9f54
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 167 additions and 92 deletions

View file

@ -40,6 +40,10 @@ type Indexer struct {
Settings map[string]string `json:"settings,omitempty"`
}
func (i Indexer) ImplementationIsFeed() bool {
return i.Implementation == "rss" || i.Implementation == "torznab" || i.Implementation == "newznab"
}
type IndexerMinimal struct {
ID int `json:"id"`
Name string `json:"name"`