From d8c9f8697ebf28b8b6a32beae685a5be1ffce422 Mon Sep 17 00:00:00 2001 From: Goldy <153996346+g0ldyy@users.noreply.github.com> Date: Mon, 1 Jul 2024 13:02:50 +0200 Subject: [PATCH] better like this ig --- comet/api/core.py | 2 +- comet/utils/general.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/comet/api/core.py b/comet/api/core.py index 8b14cce..9c6c1bb 100644 --- a/comet/api/core.py +++ b/comet/api/core.py @@ -23,7 +23,7 @@ async def health(): indexers = settings.INDEXER_MANAGER_INDEXERS webConfig = { - "indexers": [indexer.replace(" ", "_") for indexer in indexers], + "indexers": [indexer.replace(" ", "_").lower() for indexer in indexers], "languages": [language.replace(" ", "_") for language in RTN.patterns.language_code_mapping.keys()], "resolutions": ["480p", "720p", "1080p", "1440p", "2160p", "2880p", "4320p"] } diff --git a/comet/utils/general.py b/comet/utils/general.py index d83260d..f761f8a 100644 --- a/comet/utils/general.py +++ b/comet/utils/general.py @@ -75,7 +75,7 @@ def configChecking(b64config: str): async def getIndexerManager(session: aiohttp.ClientSession, indexerManagerType: str, indexers: list, query: str): try: - indexers = [indexer.lower().replace("_", " ") for indexer in indexers] + indexers = [indexer.replace("_", " ") for indexer in indexers] timeout = aiohttp.ClientTimeout(total=settings.INDEXER_MANAGER_TIMEOUT) results = []