From 58cb9f5674eca30fe6734b3313d230e138777174 Mon Sep 17 00:00:00 2001 From: Goldy <153996346+g0ldyy@users.noreply.github.com> Date: Mon, 1 Jul 2024 13:42:12 +0200 Subject: [PATCH] more results --- comet/utils/general.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comet/utils/general.py b/comet/utils/general.py index f761f8a..2c2eed1 100644 --- a/comet/utils/general.py +++ b/comet/utils/general.py @@ -81,7 +81,7 @@ async def getIndexerManager(session: aiohttp.ClientSession, indexerManagerType: results = [] if indexerManagerType == "jackett": - response = await session.get(f"{settings.INDEXER_MANAGER_URL}/api/v2.0/indexers/all/results?apikey={settings.INDEXER_MANAGER_API_KEY}&Query={query}&Tracker[]={'&Tracker[]='.join(indexer for indexer in indexers)}&Category[]=2000&Category[]=5000", timeout=timeout) + response = await session.get(f"{settings.INDEXER_MANAGER_URL}/api/v2.0/indexers/all/results?apikey={settings.INDEXER_MANAGER_API_KEY}&Query={query}&Tracker[]={'&Tracker[]='.join(indexer for indexer in indexers)}", timeout=timeout) # &Category[]=2000&Category[]=5000 response = await response.json() for result in response["Results"]: @@ -98,7 +98,7 @@ async def getIndexerManager(session: aiohttp.ClientSession, indexerManagerType: if indexer["name"].lower() in indexers or indexer["definitionName"].lower() in indexers: indexersId.append(indexer["id"]) - response = await session.get(f"{settings.INDEXER_MANAGER_URL}/api/v1/search?query={query}&indexerIds={'&indexerIds='.join(str(indexerId) for indexerId in indexersId)}&categories=2000&categories=5000&type=search", headers={ + response = await session.get(f"{settings.INDEXER_MANAGER_URL}/api/v1/search?query={query}&indexerIds={'&indexerIds='.join(str(indexerId) for indexerId in indexersId)}&type=search", headers={ # &categories=2000&categories=5000 "X-Api-Key": settings.INDEXER_MANAGER_API_KEY }) response = await response.json()