Add managed LadyPoly WebUI using Deck music API

This commit is contained in:
Mikei386
2026-09-30 22:32:17 +02:00
parent 3aa2301a53
commit cf3e354434
13 changed files with 218 additions and 10 deletions
+1 -1
View File
@@ -197,7 +197,7 @@ class APIHandler(BaseHTTPRequestHandler):
with ep.lock:
if not ep.allowed():raise APIError('Endpunkt wird gestoppt.',503,'endpoint_stopping')
ep.inflight+=1;admitted=True
if ep.video and ep.scheduler.gpu_mode!='llm':
if ep.video and ep.scheduler.gpu_mode not in ('llm','music'):
if ep.scheduler.gpu_mode=='switching':raise APIError('Moduswechsel läuft.',503,'mode_switching')
video=ep.video.status()
if not video.get('service',{}).get('ready'):raise APIError('Video-API noch nicht bereit.',503,'video_not_ready')