add notifier to lyric_search for unknown request src, add timeout for widget/radio endpoint

This commit is contained in:
2025-01-22 19:49:46 -05:00
parent 417d8b00f0
commit 2df8250ba2
2 changed files with 6 additions and 2 deletions

View File

@ -57,7 +57,7 @@ class Misc(FastAPI):
#TODO: change URL below to dynamically populate based on listener
async with ClientSession() as session:
async with await session.post("http://127.0.0.1:52111/xc/", json=json_payload,
headers=headers) as request:
headers=headers, timeout=ClientTimeout(connect=3, sock_read=2)) as request:
request.raise_for_status()
request_json = await request.json()
request_json = request_json.get('response')