reformat, remove sonarr event hook

This commit is contained in:
2025-06-01 00:55:34 -05:00
parent 0486a814e1
commit c55046c708
3 changed files with 1 additions and 7 deletions

View File

@@ -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