fix(indexers): torznab update not working (#332)

This commit is contained in:
Ludvig Lundgren 2022-07-02 18:23:46 +02:00 committed by GitHub
parent 5ef2ea04b5
commit 94a3810f57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -215,12 +215,7 @@ func (s *service) mapIndexer(indexer domain.Indexer) (*domain.IndexerDefinition,
} }
func (s *service) updateMapIndexer(indexer domain.Indexer) (*domain.IndexerDefinition, error) { func (s *service) updateMapIndexer(indexer domain.Indexer) (*domain.IndexerDefinition, error) {
definitionName := indexer.Identifier d, ok := s.mappedDefinitions[indexer.Identifier]
if indexer.Implementation == "torznab" {
definitionName = "torznab"
}
d, ok := s.mappedDefinitions[definitionName]
if !ok { if !ok {
return nil, nil return nil, nil
} }