mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-17 23:23:25 +02:00
refactor indexer module
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user