mirror of
https://github.com/Xevion/indexer-analyze.git
synced 2025-12-06 09:15:23 -06:00
reformat, remove sonarr event hook
This commit is contained in:
4
hooks.py
4
hooks.py
@@ -11,8 +11,4 @@ async def add_sonarr_api_key(request: httpx.Request) -> None:
|
||||
Event hook to inject the Sonarr API key into requests to the Sonarr domain and /api path.
|
||||
"""
|
||||
if SONARR_URL and request.url.host in SONARR_URL and "/api" in request.url.path:
|
||||
await logger.debug(
|
||||
"applying sonarr api key",
|
||||
sonarr_url=SONARR_URL,
|
||||
)
|
||||
request.headers["X-Api-Key"] = SONARR_API_KEY
|
||||
|
||||
Reference in New Issue
Block a user