add notifier to lyric_search for unknown request src, add timeout for widget/radio endpoint
This commit is contained in:
@ -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')
|
||||
|
Reference in New Issue
Block a user