#155 Update example(s)

This commit is contained in:
kokarare1212 2022-10-07 18:52:08 +09:00
parent 3d04f359d0
commit 0723ac55db
No known key found for this signature in database
GPG Key ID: 0DEF4BD04A8D7E97
2 changed files with 2 additions and 2 deletions

View File

@ -127,7 +127,7 @@ def play(track_id_str: str):
byte = stream.input_stream.stream().read(1)
if byte == -1:
return
ffplay.stdin.write(bytes([byte]))
ffplay.stdin.write(byte)
def splash():

View File

@ -111,7 +111,7 @@ def response(client: socket.socket, uri: str, header: dict,
stream.input_stream.stream().size()):
break
byte = stream.input_stream.stream().read(1)
client.send(bytes([byte]))
client.send(byte)
return "", [], b"", True
else:
return HttpCode.http_404, [], HttpCode.http_404.encode(), False