mirror of
https://github.com/spl0k/supysonic.git
synced 2024-12-23 01:16:18 +00:00
Won't handle content-length estimation
This is actually a bad idea. If the estimated value is too low, clients might close the connection before receiving the whole file.
This commit is contained in:
parent
4c68bac189
commit
64e8d616fc
@ -82,8 +82,6 @@ def stream_media():
|
|||||||
else:
|
else:
|
||||||
response = send_file(res.path, mimetype = dst_mimetype)
|
response = send_file(res.path, mimetype = dst_mimetype)
|
||||||
|
|
||||||
# TODO handle estimateContentLength
|
|
||||||
|
|
||||||
res.play_count = res.play_count + 1
|
res.play_count = res.play_count + 1
|
||||||
res.last_play = now()
|
res.last_play = now()
|
||||||
request.user.last_play = res
|
request.user.last_play = res
|
||||||
|
Loading…
Reference in New Issue
Block a user