remove karma endpoints from schema + add webhook notification for debugging (failed lyrics searches, non-LRC)
This commit is contained in:
@ -149,15 +149,12 @@ class Radio(FastAPI):
|
||||
"duration": item.get("duration"),
|
||||
}
|
||||
)
|
||||
fallback_playlist_len: int = len(
|
||||
orig_queue
|
||||
) # Used if search term is provided
|
||||
full_playlist_len: int = len(orig_queue)
|
||||
filtered_len: int = len(queue_full)
|
||||
out_json = {
|
||||
"draw": data.draw,
|
||||
"recordsTotal": (
|
||||
len(queue_full) if not data.search else fallback_playlist_len
|
||||
),
|
||||
"recordsFiltered": (len(queue_full)),
|
||||
"recordsTotal": full_playlist_len,
|
||||
"recordsFiltered": filtered_len,
|
||||
"items": queue_out,
|
||||
}
|
||||
return JSONResponse(content=out_json)
|
||||
|
Reference in New Issue
Block a user