refactor indexer module

This commit is contained in:
maxDorninger
2025-03-27 19:14:31 +01:00
parent 89f53040ed
commit 9d3e6d6eba
4 changed files with 12 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
import logging
import config
from database.tv import Season
from indexer.config import ProwlarrConfig
from indexer.generic import GenericIndexer, IndexerQueryResult
from indexer.prowlarr import Prowlarr
@@ -23,5 +23,5 @@ def search(query: str | Season) -> list[IndexerQueryResult]:
indexers: list[GenericIndexer] = []
if config.ProwlarrConfig().enabled:
if ProwlarrConfig.enabled:
indexers.append(Prowlarr())