fix: provide "latest" endpoint for channels

This commit is contained in:
2025-09-23 04:19:42 +02:00
parent c20d4c34aa
commit 60712f3b5d

View File

@@ -785,6 +785,8 @@ def channels(data, req, only_json: bool = False):
return get_channel_tab( data[4], data[3], req)
case "live":
return get_channel_tab("streams", data[3], req)
case "latest":
return get_channel_tab( "videos", data[3], req)
case _:
return send(400, {"error": f"Bad request, unrecognized/unsupported tab \"{data[4]}\"."})