reset the streaming endpoint quality

This commit is contained in:
cwilvx
2024-09-07 22:57:58 +03:00
parent 2e5b1ab222
commit 30cc5bad0b
2 changed files with 5 additions and 1 deletions
+3
View File
@@ -46,6 +46,9 @@
- Clean up tempfiles after transcoding
- Double sort artist tracks for consistency (alphabetically then by other field. eg. playcount)
- ON THE HOME PAGE, STORE THE ITEMS, THEN HYDRATE ON REFRESH INSTEAD OF CLEANING THEN RELOADING THE DATA AGAIN
# Bug fixes
- Duplicates on search
+2 -1
View File
@@ -43,7 +43,7 @@ class SendTrackFileQuery(BaseModel):
)
quality: Literal["original", "1411", "800", "600", "320", "256", "128", "96"] = (
Field(
"320",
"original",
description="The quality of the audio file. Options: original, 1411, 1024, 512, 320, 256, 128, 96",
)
)
@@ -290,6 +290,7 @@ def send_file_as_chunks(filepath: str) -> Response:
"Content-Range",
f"bytes {start}-{position}/{os.path.getsize(filepath) + bytes_to_add}",
)
response.headers.add("Access-Control-Expose-Headers", "Content-Range")
response.headers.add("Accept-Ranges", "bytes")
return response